Lecture Notes in Computer Science

6910

Commenced Publication in 1973
Founding and Former Series Editors:
Gerhard Goos, Juris Hartmanis, and Jan van Leeuwen

Editorial Board

David Hutchison

Lancaster University, UK

Takeo Kanade

Carnegie Mellon University, Pittsburgh, PA, USA

Josef Kittler

University of Surrey, Guildford, UK

Jon M. Kleinberg

Cornell University, Ithaca, NY, USA

Friedemann Mattern

ETH Zurich, Switzerland

John C. Mitchell

Stanford University, CA, USA

Moni Naor

Weizmann Institute of Science, Rehovot, Israel

Oscar Nierstrasz

University of Bern, Switzerland

C. Pandu Rangan

Indian Institute of Technology, Madras, India

Bernhard Steffen

TU Dortmund University, Germany

Madhu Sudan

Microsoft Research, Cambridge, MA, USA

Demetri Terzopoulos

University of California, Los Angeles, CA, USA

Doug Tygar

University of California, Berkeley, CA, USA

Moshe Y. Vardi

Rice University, Houston, TX, USA

Gerhard Weikum

Max Planck Institute for Informatics, Saarbruecken, Germany

Ngoc Thanh Nguyen (Ed.)

Transactions on
Computational
Collective Intelligence V

1 3

Volume Editor

Ngoc Thanh Nguyen
Wroclaw University of Technology
Wyb. Wyspianskiego 27
50-370 Wroclaw, Poland
E-mail: ngoc-thanh.nguyen@pwr.edu.pl

ISSN 0302-9743 (LNCS)
ISSN 2190-9288 (TCCI)
ISBN 978-3-642-24015-7
DOI 10.1007/978-3-642-24016-4

e-ISSN 1611-3349 (LNCS)

e-ISBN 978-3-642-24016-4

Springer Heidelberg Dordrecht London New York

Library of Congress Control Number: 2011935943

CR Subject Classiﬁcation (1998): I.2, C.2.4, I.2.11, H.3-5, D.2, I.5

© Springer-Verlag Berlin Heidelberg 2011
This work is subject to copyright. All rights are reserved, whether the whole or part of the material is
concerned, speciﬁcally the rights of translation, reprinting, re-use of illustrations, recitation, broadcasting,
reproduction on microﬁlms or in any other way, and storage in data banks. Duplication of this publication
or parts thereof is permitted only under the provisions of the German Copyright Law of September 9, 1965,
in ist current version, and permission for use must always be obtained from Springer. Violations are liable
to prosecution under the German Copyright Law.
The use of general descriptive names, registered names, trademarks, etc. in this publication does not imply,
even in the absence of a speciﬁc statement, that such names are exempt from the relevant protective laws
and regulations and therefore free for general use.

Typesetting: Camera-ready by author, data conversion by Scientiﬁc Publishing Services, Chennai, India

Printed on acid-free paper

Springer is part of Springer Science+Business Media (www.springer.com)

Preface

Welcome to the ﬁfth volume of Springer’s Transactions on Computational
Collective Intelligence (TCCI). It is the third issue in 2011 of this journal which
is devoted to research in computer-based methods of computational collective in-
telligence (CCI) and their applications in a wide range of ﬁelds such as group de-
cision making, knowledge integration, consensus computing, the Semantic Web,
social networks and multi-agent systems. TCCI strives to cover new computa-
tional, methodological, theoretical and practical aspects of collective intelligence
understood as the form of intelligence that emerges from the collaboration and
competition of many individuals (artiﬁcial and/or natural).

This volume of TCCI includes ten interesting and original papers. The ﬁrst
of them, entitled “Improved N-grams Approach for Web Page Language Identi-
ﬁcation” by Ali Selamat, presents an improved N-grams approach for Web page
language identiﬁcation, which is based on a combination of an original N-grams
approach and a modiﬁed N-grams approach that has been used for language
identiﬁcation of Web documents. In the second paper with the title “Image-Edge
Detection Using Variation-Adaptive Ant Colony Optimization” the authors, Jing
Tian, Weiyu Yu, Li Chen, and Lihong Ma, present a novel image-edge detection
approach using ant colony optimization techniques, in which a pheromone matrix
representing edges at pixel positions of an image is built according to the move-
ments of a number of ants which are dispatched to move on the image. The next
paper, “An Iterative Process for Component-Based Software Development Cen-
tered on Agents” by Yves Wautelet, Sodany Kiv, and Manuel Kolp, includes a
formalization of the process for component-based software development through
the use of the agent paradigm. In the fourth paper entitled “Cellular Gene Ex-
pression Programming Classiﬁer Learning” the authors, Joanna J (cid:2)edrzejowicz and
Piotr J (cid:2)edrzejowicz, present a method for integrating two collective computational
intelligence techniques: gene expression programming and cellular evolutionary
algorithms with a view to inducing expression trees. This paper also includes a
discussion of the validating experiment results conﬁrming the high quality of the
proposed ensemble classiﬁers. The next paper, “A Situation-Aware Computa-
tional Trust Model for Selecting Partners” by Joana Urbano, Ana Paula Rocha,
and Eugenio Oliveira, contains the description of a model for selecting partners
in a society, in which the authors focus on contextual ﬁtness, a component of the
model that adds a contextual dimensional to existing trust aggregation engines.
The sixth paper entitled “Using the Perseus System for Modelling Epistemic
Interactions” by Magdalena Kacprzak et al., includes a model for agent knowl-
edge acquisition, using a logical puzzle in which agents increase their knowl-
edge about the hats they wear and the software tool named Perseus. In the
seventh paper, “Reduction of Faulty Detected Shot Cuts and Cross-Dissolve Ef-
fects in Video Segmentation Process of Diﬀerent Categories of Digital Videos,”

VI

Preface

the author, Kazimierz Choro´s, presents a description of experiments conﬁrming
the eﬀectiveness of four methods of faulty video detection referring to ﬁve diﬀer-
ent categories of movie: TV talk-show, documentary movie, animal video, action
and adventure, and pop music video. In the next paper, “Using Knowledge-
Integration Techniques for User Proﬁle Adaptation Methods in Document Re-
trieval Systems” by Bernadetta Mianowska and Ngoc Thanh Nguyen, a model
for integrating the archival knowledge included in a user proﬁle with the new
knowledge delivered to an information retrieval system, detecting and proving its
properties, is presented. The ninth paper entitled “Modeling Agents and Agent
Systems,” by Theodor Lettmann et al., contains a universal and formal descrip-
tion for agent systems that can be used as a core model with other existing
models as special cases. The authors show that owing to this core model a clear
speciﬁcation of agent systems and their properties can be achieved. The last
paper, “Online News Event Extraction for Global Crisis Surveillance” by Jakub
Piskorski et al., presents a real-time and multilingual news event extraction sys-
tem developed at the Joint Research Centre of the European Commission. The
authors show that with this system it is possible to accurately and eﬃciently
extract violent and natural disaster events from online news.

TCCI is a peer-reviewed and authoritative reference dealing with the working
potential of CCI methodologies and applications as well as emerging issues of in-
terest to academics and practitioners. The research area of CCI has been growing
signiﬁcantly in recent years and we are very thankful to everyone within the CCI
research community who has supported the TCCI and its aﬃliated events in-
cluding the International Conferences on Computational Collective Intelligence
(ICCCI). The ﬁrst ICCCI event was held in Wroclaw, Poland, in October 2009.
ICCCI 2010 was held in Kaohsiung, Taiwan, in November 2010 and ICCCI 2011
took place in Gdynia, Poland, in September 2011. For ICCCI 2011 around 300
papers from 25 countries were submitted and only 105 papers were selected for
inclusion in the proceedings published by Springer in LNCS/LNAI series. We
will invite authors of the ICCCI papers to extend them and submit them for
publication in TCCI.

We are very pleased that TCCI and the ICCCI conferences are strongly ce-
mented as high-quality platforms for presenting and exchanging the most im-
portant and signiﬁcant advances in CCI research and development. It is also our
pleasure to announce the creation of the new Technical Committee on Computa-
tional Collective Intelligence within the Systems, Man and Cybernetics Society
(SMC) of IEEE.

We would like to thank all the authors for their contributions to TCCI. This
issue would not have been possible without the great eﬀorts of the editorial board
and many anonymously acting reviewers. We would like to express our sincere
thanks to all of them. Finally, we would also like to express our gratitude to the
LNCS editorial staﬀ of Springer, in particular Alfred Hofmann, Ursula Barth,
Peter Strasser and their team, who supported the TCCI journal.

July 2011

Ngoc Thanh Nguyen

Transactions on Computational Collective
Intelligence

This Springer journal focuses on research in applications of the computer-based
methods of computational collective intelligence (CCI) and their applications in
a wide range of ﬁelds such as the Semantic Web, social networks and multi-agent
systems. It aims to provide a forum for the presentation of scientiﬁc research and
technological achievements accomplished by the international community.

The topics addressed by this journal include all solutions of real-life problems
for which it is necessary to use computational collective intelligence technologies
to achieve eﬀective results. The emphasis of the papers published is on novel and
original research and technological advancements. Special features on speciﬁc
topics are welcome.

Editor-in-Chief

Ngoc Thanh Nguyen

Wroclaw University of Technology, Poland

Co-Editor-in-Chief

Ryszard Kowalczyk

Swinburne University of Technology, Australia

Editorial Board

John Breslin
Shi-Kuo Chang
Longbing Cao
Oscar Cordon
Tzung-Pei Hong
Gordan Jezic
Piotr J (cid:2)edrzejowicz
Kang-Huyn Jo
Rados(cid:4)law Katarzyniak
Jozef Korbicz
Hoai An Le Thi
Pierre L´evy
Tokuro Matsuo
Kazumi Nakamatsu
Toyoaki Nishida
Manuel N´u˜nez

National University of Ireland, Galway, Ireland
University of Pittsburgh, USA
University of Technology Sydney, Australia
European Centre for Soft Computing, Spain
National University of Kaohsiung, Taiwan
University of Zagreb, Croatia
Gdynia Maritime University, Poland
University of Ulsan, Korea
Wroclaw University of Technology, Poland
University of Zielona Gora, Poland
Metz University, France
University of Ottawa, Canada
Yamagata University, Japan
University of Hyogo, Japan
Kyoto University, Japan
Universidad Complutense de Madrid, Spain

VIII

Transactions on Computational Collective Intelligence

Julian Padget
Witold Pedrycz
Debbie Richards
Roman S(cid:4)lowi´nski
Edward Szczerbicki
Kristinn R. Thorisson
Gloria Phillips-Wren
S(cid:4)lawomir Zadro˙zny

University of Bath, UK
University of Alberta, Canada
Macquarie University, Australia
Poznan University of Technology, Poland
University of Newcastle, Australia
Reykjavik University, Iceland
Loyola University Maryland, USA
Institute of Research Systems, PAS, Poland

Table of Contents

Improved N-grams Approach for Web Page Language Identiﬁcation . . . .

1

Ali Selamat

Image Edge Detection Using Variation-Adaptive Ant Colony
Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Jing Tian, Weiyu Yu, Li Chen, and Lihong Ma

An Iterative Process for Component-Based Software Development
Centered on Agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Yves Wautelet, Sodany Kiv, and Manuel Kolp

27

41

Cellular Gene Expression Programming Classiﬁer Learning . . . . . . . . . . . .

66

Joanna J¸edrzejowicz and Piotr J¸edrzejowicz

A Situation-Aware Computational Trust Model for Selecting
Partners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

84

Joana Urbano, Ana Paula Rocha, and Eug´enio Oliveira

Using the Perseus System for Modelling Epistemic Interactions . . . . . . . .

106

Magdalena Kacprzak, Piotr Kulicki, Robert Trypuz,
Katarzyna Budzynska, Pawe(cid:2)l Garbacz, Marek Lechniak, and
Pawe(cid:2)l Rembelski

Reduction of Faulty Detected Shot Cuts and Cross Dissolve Eﬀects in
Video Segmentation Process of Diﬀerent Categories of Digital Videos . . .

124

Kazimierz Choro´s

Using Knowledge Integration Techniques for User Proﬁle Adaptation
Method in Document Retrieval Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

140

Bernadetta Mianowska and Ngoc Thanh Nguyen

Modeling Agents and Agent Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

157

Theodor Lettmann, Michael Baumann, Markus Eberling, and
Thomas Kemmerich

Online News Event Extraction for Global Crisis Surveillance . . . . . . . . . . .

182

Jakub Piskorski, Hristo Tanev, Martin Atkinson,
Eric van der Goot, and Vanni Zavarella

Author Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

213

Improved N-grams Approach for Web Page
Language Identiﬁcation

Ali Selamat

Software Engineering Research Group,
Faculty of Computer Science & Information Systems,
Universiti Teknologi Malaysia, UTM Johor Baharu Campus,
81310, Johor, Malaysia
aselamat@utm.my

Abstract. Language identiﬁcation has been widely used for machine
translations and information retrieval. In this paper, an improved N-
grams (ING) approach is proposed for web page language identiﬁcation.
The improved N-grams approach is based on a combination of original
N-grams (ONG) approach and a modiﬁed N-grams (MNG) approach
that has been used for language identiﬁcation of web documents. The
features selected from the improved N-grams approach are based on N-
grams frequency and N-grams position. The features selected from the
original N-grams approach are based on a distance measurement and
the features selected from the modiﬁed N-grams approach are based
on a Boolean matching rate for language identiﬁcation of Roman and
Arabic scripts web pages. A large real-world document collection from
British Broadcasting Corporation (BBC) website, which is composed of
1000 documents on each of the languages (e.g., Azeri, English, Indone-
sian, Serbian, Somali, Spanish, Turkish, Vietnamese, Arabic, Persian,
Urdu, Pashto) have been used for evaluations. The precision, recall and
F 1 measures have been used to determine the eﬀectiveness of the pro-
posed improved N-grams (ING) approach. From the experiments, we
have found that the improved N-grams approach has been able to im-
prove the language identiﬁcation of the contents in Roman and Arabic
scripts web page documents from the available datasets.

Keywords: Monolingual, multilingual, web page language identiﬁca-
tion, N-grams approach.

1 Introduction

Language identiﬁcation (LID) is the process of identifying the predeﬁned lan-
guage that has been used to write various types of documents. In order to identify
the content of web documents, humans are the most accurate language identiﬁer.
Within seconds of reading a passage of a text, humans can determine whether
it is a language they can understand. If it is a language that they are unfamiliar
with, they often can make subjective judgments as to its similarity to a language
that they already know. In this research, a term “language” is used to refer to

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 1–26, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

2

A. Selamat

a natural communication system used by humans either in spoken or written
forms. There are 7000 languages that have been reported in Ethnologue [1] that
indicate a widely cited reference works on the languages available in the world.
Globalization has led to unlimited information sharing across the Internet,
where communication among people in a bilingual environment is a critical chal-
lenge to be faced. Abd Rozan et al. [2] have noted the importance of monitoring
the behavior and activities of world languages in cyberspace. The information
collected from such studies has implications for customized ubiquitous learning1,
in which Information and Communication Technology (ICT) has to cope with
the “digital divides”2 that exist both within countries and regions and between
countries. In addition, MacLean [3] has reasserted the status of language as a
topic of major concern for researchers in the light of the rise in transnational
corporations. Also, Redondo-Bellon [4] has analyzed the eﬀects of bilingualism
on the consumers in Spain. From the study, the author has found that language
segmentation in various sectors and regions in Spain is very important in order
to reach each linguistic group more eﬃciently. All of these examples reﬂect the
signiﬁcance of multi-languages identiﬁcation and understanding between various
ethnic groups in the world that will bring people together.

Therefore, in this paper we analyze the important of language identiﬁcation
of web documents as one of the crucial tasks in identifying the language be-
longs to the document. The same words may appear in many languages which
use similar scripts for written communication. This is usually happen when the
countries that are using the Arabic scripts for their written language (i.e., Saudi
Arabia, Pakistan, Iran, Iraq, Turkey, etc.) and also the countries that use Roman
scripts for written communications such as United Kingdom, France, Germany,
Australia, Indonesia, Malaysia, etc. Many researchers have proposed diﬀerent
solutions in language identiﬁcation problems of web documents such as sup-
port vector machine (SVM), neural networks (NN), rough-set theory, N-grams
[5], etc. However, the eﬀectiveness of the proposed algorithms in identifying the
languages exist in the documents remain as important research area to be inves-
tigated.

In this paper we proposed an improved N-grams approach (ING) for web
page language identiﬁcation. The improved N-grams approach is based on a
combination of an original N-grams (ONG) approach and a modiﬁed N-grams
(MNG) approach used for language identiﬁcation of web documents. The orig-
inal N-grams (ONG) approach is based on a distance measurement while the
modiﬁed N-grams (MNG) approach uses a Boolean matching rate for language
identiﬁcation. The improved N-grams approach uses both N-grams frequency
and N-grams position in order to identify the languages that have been written
in Roman and Arabic scripts web pages. The precision, recall, and F 1 measures

1 According to AbdRozan et al. [2], customized ubiquitous learning means that the
learning is best conducted in the natural language of the student and present every-
where at once.

2 Digital divide refers to the disparity between those who have use of and access to

ICT versus those who do not [2].

Improved N-grams Approach for Web Page Language Identiﬁcation

3

have been used to evaluate the eﬀectiveness of the approaches. From the exper-
iments, we have found that the improved N-grams approach has been able to
improve the language identiﬁcation of the contents in Roman and Arabic scripts
web page documents with then accuracy is above 96%.

This paper is organized as follows: Related works on language identiﬁcation
and recent development of N-grams approach for language identiﬁcations are dis-
cussed in Section 2. Section 3 describes the proposed improved N-grams approach
(ING) for web page language identiﬁcation. Section 4 explains the experimental
setup used to evaluate the proposed improved N-grams approach for web page
language identiﬁcations. The experimental results and discussions are explained
in Section 5. Finally, the conclusion is discussed in Section 6.

2 Related Works on N-grams Used For Language

Identiﬁcation

Language identiﬁcation is frequently used as an initial step in a text processing
system that may involve machine translation, semantic understanding, catego-
rization, searching, routing or storage for information retrieval [6]. In order to
produce correct dictionaries, sentence parsers, proﬁles, distribution lists, and
stop-word list to be used, the main pre-requisite is to know the language belongs
to the given text. Incorrect identiﬁcation of the language may resulted in gar-
bled translations, faulty or no information analysis, and poor precision or recall
during searching for the related documents of interest [7]. Language identiﬁca-
tion has been typically performed by trained professionals [8]. Manual language
identiﬁcation process is time consuming and costly if is performed by many lan-
guage experts. In order to overcome the ineﬃciency of the manual process, the
learning-based language identiﬁcation methods using computational approaches
have emerged. Although existing computational methods can produce reason-
able results, they often resulted in a huge computational cost [8]. Also, many
computational methods require large lists of words or N-grams with associated
frequency counts for each of characters in the documents that belong to certain
language. Calculations on large lists and matrices make these methods expensive
to use [9]. Therefore, there is a need to improve the usage of N-grams approach
for language identiﬁcations of web documents.

Many related works have been done on language identiﬁcations of web doc-
uments using N-grams approach. For example, Ng et al. [10] have investigated
total N-grams, N-grams frequency, N-grams frequency document frequency, and
N-grams frequency inverse document frequency of web page language identiﬁca-
tion. However, the authors found that the N-grams approach is not suitable to
be used for language identiﬁcation of web documents due to the required algo-
rithm having dimensional and feature selectivity problems. Therefore, a machine
learning method namely a fuzzy ARTMAP approach has been used for super-
vised language identiﬁcation of web documents. Barroso et al. [11] have used
N-grams and compare it with the support vector machines (SVM) and multi-
layer perceptron (MLP) classiﬁers for language identiﬁcation of web documents.

4

A. Selamat

However, the authors state that the proposed approach only satisfactorily iden-
tify three diﬀerent languages written in Roman scripts that are Basque, Spanish
and French. Wang et al. [12] have proposed a hierarchical system design for a
language identiﬁcation system. The authors claim that the hierarchical system
has outperformed the N-grams based approach. Amine et al. [13] have proposed
a language identiﬁcation of text documents using hybrid algorithm based on a
combination of the K-means and the artiﬁcial ants. The authors claim that the
results are very promising and oﬀer many perspectives.

Xiao et al. [14] have proposed the LVQ approach for language identiﬁcation
of web documents and the authors claim that the performance is ﬁve times bet-
ter than the N-grams approach. Rehurek et al. [15] have proposed an improve
N-grams based on the constructs language models based on word relevance and
addresses these limitations. You et al. [16] have proposed an inclusion of morpho-
logical information in a web document including letter or letter-chunk N-grams
and web-based page counts that are used to enhance the performance of lan-
guage identiﬁcation of web documents. The accuracy increases from 75.0% to
86.3%, or a 45.2% relative error reduction. Ng and Lee [17] have proposed a
language identiﬁcation of web documents of four Chinese dialects such as Wu,
Cantonese, Min and Mandarin using N-gram features. Deng and Liu [18] have
proposed automatic language identiﬁcation using support vector machines and
phonetic N-gram approaches. Botha et al. [19] have investigated the performance
of text-based language identiﬁcation systems on the 11 oﬃcial languages of South
Africa, where the N-gram statistics have been used as features for classiﬁcation.
Cordoba et al. [20] have presented a novel approach for language identiﬁcation
based on a text categorization technique, namely an N-gram frequency ranking
based on 5-gram. Thomas and Verma [21] have proposed a language identiﬁca-
tion of web documents using substrings of a person name based on letter N-grams
to identify the language of its origin. Suo et al. [22] have proposed backend clas-
siﬁers for for classifying the phone recognition and language modeling. Moscola
et al. [23] have proposed hardware language identiﬁer based on N-gram based
language identiﬁer. Yang and Siu et al. [24] have used N-best tokenization in
a GMM-SVM language identiﬁcation system and the n-best tokenization gives
good performance improvement. Rouas [25] has analyzed the problem of prosodic
diﬀerences among languages or dialects can be automatically determined for lan-
guage identiﬁcation using N-grams approach. The proposed model has been able
to identify the dialectal areas, leading to the hypothesis that those dialects have
prosodic diﬀerences. Hanif et al. [26] have studied on unicode aided language
identiﬁcation across multiple scripts and heterogeneous data using N-grams ap-
proach. Li et al. [27] have proposed a vector space modeling (VSM) approach
to spoken language identiﬁcation. The authors claimed that the VSM approach
leads to a discriminative classiﬁer backend, which is demonstrated to give supe-
rior performance over likelihood-based N-gram language modeling (LM) backend
for long utterances.

However, the research done by the above researchers are mainly focusing on
language identiﬁcation of English and Chinese text documents. The studies on

Improved N-grams Approach for Web Page Language Identiﬁcation

5

language identiﬁcation of Arabic web documents have mainly been done by [10].
Therefore, the scalability and eﬀectiveness of the proposed method on Arabic
scripts related languages have not been widely investigated. Therefore, in this
research an improved N-grams approach has been proposed in order to identify
the languages belonging to Arabic and Roman scripts web based documents. The
detail of the proposed improved N-grams approach is discussed in the following
section.

3 Proposed Improved N-grams Approach

The proposed improved N-grams (INA) approach is based on a combination of
original N-grams (ONG) approach and a modiﬁed N-grams (MNG) approach
that has been used for language identiﬁcation of web documents. The improved
N-grams approach is based on N-grams frequency and N-grams position. The
original N-grams is based on distance measurement and the modiﬁed N-grams
approach uses a Boolean matching rate for language identiﬁcation of Roman
and Arabic scripts web pages. Before the proposed improved N-grams approach
is discussed in detail in Section 3.4, the original N-grams approach is described
in Section 3.4 and the modiﬁed N-grams approach is described in Section 3.3
to highlight the processes involved in the existing works of N-grams. The detail
explanations are as follows:

3.1 N-grams Approach

The N-grams approach can be viewed as a sub-sequence of N items from a longer
sequence of words. The item mentioned can refer to a letter, word, syllable or any
logical data type that is deﬁned by the application. Because of its simplicity in
implementation and high accuracy in predicting the next possible sequence from
a known sequence, the N-grams probability model is one of the most popular
methods in statistical natural language processing [28]. The principal idea of
using N-grams for language identiﬁcation is that every language contains its
own unique N-grams and tends to use certain N-grams more frequently than
others, hence providing a clue about the language [29].

(cid:63)(cid:108) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107) (cid:109)(cid:112)(cid:98)(cid:99)(cid:112) (cid:47) (cid:38)(cid:103)(cid:44)(cid:99)(cid:44)(cid:42) N = 1(cid:39) (cid:103)(cid:113) (cid:112)(cid:99)(cid:100)(cid:99)(cid:112)(cid:112)(cid:99)(cid:98) (cid:114)(cid:109) (cid:95)(cid:113) (cid:95) (cid:107)(cid:109)(cid:108)(cid:109)(cid:101)(cid:112)(cid:95)(cid:107)(cid:42) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107) (cid:109)(cid:112)(cid:98)(cid:99)(cid:112)
(cid:48) (cid:95)(cid:113) (cid:95) (cid:96)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107) (cid:95)(cid:108)(cid:98) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107) (cid:109)(cid:112)(cid:98)(cid:99)(cid:112) (cid:49) (cid:95)(cid:113) (cid:95) (cid:114)(cid:112)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107)(cid:44) (cid:82)(cid:102)(cid:99) (cid:112)(cid:99)(cid:113)(cid:114) (cid:103)(cid:113) (cid:101)(cid:99)(cid:108)(cid:99)(cid:112)(cid:95)(cid:106)(cid:106)(cid:119) (cid:112)(cid:99)(cid:100)(cid:99)(cid:112)(cid:112)(cid:99)(cid:98)
(cid:114)(cid:109) (cid:95)(cid:113) (cid:545)(cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113)(cid:546)(cid:44) (cid:68)(cid:109)(cid:112) (cid:103)(cid:108)(cid:113)(cid:114)(cid:95)(cid:108)(cid:97)(cid:99)(cid:42) (cid:95) (cid:113)(cid:114)(cid:112)(cid:103)(cid:108)(cid:101) (cid:545)(cid:70)(cid:99)(cid:106)(cid:106)(cid:109) (cid:85)(cid:109)(cid:112)(cid:106)(cid:98)(cid:546) (cid:114)(cid:102)(cid:95)(cid:114) (cid:103)(cid:113) (cid:117)(cid:112)(cid:103)(cid:114)(cid:114)(cid:99)(cid:108) (cid:103)(cid:108) (cid:63)(cid:112)(cid:95)(cid:96)(cid:103)(cid:97)
(cid:113)(cid:97)(cid:112)(cid:103)(cid:110)(cid:114)(cid:113) (cid:97)(cid:95)(cid:108) (cid:96)(cid:99) (cid:97)(cid:109)(cid:107)(cid:110)(cid:109)(cid:113)(cid:99)(cid:98) (cid:95)(cid:113) (cid:95) (cid:108)(cid:115)(cid:107)(cid:96)(cid:99)(cid:112) (cid:109)(cid:100) (cid:115)(cid:108)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107) (cid:95)(cid:108)(cid:98) (cid:96)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107) (cid:95)(cid:113) (cid:113)(cid:102)(cid:109)(cid:117)(cid:108) (cid:103)(cid:108) (cid:68)(cid:103)(cid:101)(cid:44) (cid:47)(cid:44)
(cid:82)(cid:102)(cid:99) (cid:126)(cid:108)(cid:99) (cid:98)(cid:109)(cid:114)(cid:114)(cid:99)(cid:98) (cid:106)(cid:103)(cid:108)(cid:99) (cid:107)(cid:99)(cid:95)(cid:108)(cid:113) (cid:114)(cid:109) (cid:113)(cid:102)(cid:103)(cid:100)(cid:114) (cid:114)(cid:102)(cid:99) (cid:114)(cid:109)(cid:105)(cid:99)(cid:108) (cid:114)(cid:109) (cid:114)(cid:102)(cid:99) (cid:108)(cid:99)(cid:118)(cid:114) (cid:114)(cid:95)(cid:112)(cid:101)(cid:99)(cid:114)(cid:99)(cid:98) (cid:101)(cid:112)(cid:95)(cid:107) (cid:95)(cid:97)(cid:97)(cid:109)(cid:112)(cid:98)(cid:103)(cid:108)(cid:101)
(cid:114)(cid:109) (cid:114)(cid:102)(cid:99) (cid:113)(cid:103)(cid:120)(cid:99) (cid:109)(cid:100) (cid:76) (cid:43)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113)(cid:44) (cid:82)(cid:102)(cid:99)(cid:112)(cid:99)(cid:100)(cid:109)(cid:112)(cid:99)(cid:42) (cid:114)(cid:102)(cid:99) (cid:114)(cid:109)(cid:105)(cid:99)(cid:108)(cid:113) (cid:109)(cid:100) (cid:115)(cid:108)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107) (cid:95)(cid:100)(cid:114)(cid:99)(cid:112) (cid:110)(cid:112)(cid:109)(cid:97)(cid:99)(cid:113)(cid:113)(cid:103)(cid:108)(cid:101) (cid:95)(cid:112)(cid:99) (cid:1450)(cid:42)
(cid:1435)(cid:42) (cid:1431)(cid:42) (cid:1426)(cid:42) (cid:1425)(cid:42) (cid:1425)(cid:42) (cid:1449)(cid:42) (cid:1443)(cid:42) (cid:1425)(cid:42) (cid:1449)(cid:42) (cid:1450)(cid:57) (cid:117)(cid:102)(cid:99)(cid:112)(cid:99)(cid:95)(cid:113) (cid:96)(cid:103)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113) (cid:95)(cid:100)(cid:114)(cid:99)(cid:112) (cid:110)(cid:112)(cid:109)(cid:97)(cid:99)(cid:113)(cid:113)(cid:103)(cid:108)(cid:101) (cid:95)(cid:112)(cid:99) (cid:1450) (cid:1435)(cid:42) (cid:1435) (cid:1431)(cid:42) (cid:1431) (cid:1426)(cid:42) (cid:1426) (cid:1425)(cid:42) (cid:1425)
(cid:1425)(cid:42) (cid:1425) (cid:1449)(cid:42) (cid:1449) (cid:1443)(cid:42) (cid:1443) (cid:1425)(cid:42) (cid:1425) (cid:1449)(cid:42) (cid:1449) (cid:1450) (cid:38)(cid:114)(cid:102)(cid:99) (cid:107)(cid:99)(cid:95)(cid:108)(cid:103)(cid:108)(cid:101) (cid:109)(cid:100) (cid:1425)(cid:1426)(cid:1431)(cid:1435)(cid:1450) (cid:1450)(cid:1449)(cid:1425)(cid:1443)(cid:1449)(cid:1425) (cid:103)(cid:113) (cid:545)(cid:102)(cid:99)(cid:106)(cid:106)(cid:109) (cid:117)(cid:109)(cid:112)(cid:106)(cid:98)(cid:546)(cid:39)(cid:44)

Figure 2 shows the N-grams calculation between the testing and training
proﬁles. Each language has its own training proﬁle. The testing proﬁle generated
from the testing data is compared with certain training proﬁle either in terms
of distance, matching or frequency rates. The winner is selected based on the

6

A. Selamat

Fig. 1. A simulation of the N -grams approach

Fig. 2. Rank order statistics of N-grams (note: EOF is the end of ﬁle either in training
or testing proﬁle

Improved N-grams Approach for Web Page Language Identiﬁcation

7

algorithm used. For example, the winner is selected from a minimum distance
rate and maximum matching or frequency rate. The detail of the calculations
can be found in Cavnar [28].

3.2 Original N-grams Approach

Fig. 3. System ﬂow of the original N-grams [28]

The original N-grams (ONG) approach has been initially introduced by Cav-
nar [28] and the authors have use it for addressing the problem of text cat-
egorization and language identiﬁcation. They have reported very high correct
classiﬁcation rate, 92.9% - 99.8% on eight Roman script languages of a Usenet

8

A. Selamat

newsgroup article. The algorithm is based on rank-order statistics on N-grams
proﬁle. In their experiments, the shortest text used for language identiﬁcation
was 300 bytes, whereas the training data sets were between 20 kilobytes (KB) to
120 KB. They have classiﬁed documents by calculating the distances of a testing
document proﬁle with all training documents proﬁles and then the shortest one
has been selected as a winner. To perform the distance measurement, both train-
ing and testing proﬁles have to be sorted in descending order, which is from the
highest score to the lowest score. It is illustrated in Fig. 3. The distance measure-
ment is given in Eq. 1 where L is the particular language-trained proﬁle, K is the
total N-grams found in the testing proﬁle, ngma is the particular N-grams in the
testing proﬁle, and ngmb is the particular N-grams in the training proﬁle. The
actual output or testing of document language is selected among the DM (L)
with the minimum distance. The problem of original N-grams approach is the
curse of dimensionality. At least 300 bytes of data are needed to produce a rea-
sonable result and a particular threshold is also needed to be declared to avoid
huge dimension of features in calculating the distance measurement. Otherwise,
rank order statistics N-grams will fail to perform language identiﬁcation.

DM (L) =

(cid:3)(cid:4)

ngmk
a

(cid:5)2

− ngmL
b

K(cid:2)

k=1

(1)

Fig. 4 shows the algorithm that has been applied on the orignal N-grams (ONG)
approach. The input is a dataset of experiments (D), the parameter of dj rep-
resents the particular document j. The parameter Li, represents the particular
language of i and ˆS represents the particular script of languages. The ˆSbegin is
representing the beginning of codepoint for a particular script, and the ˆSend is
representing the end of codepoint for a particular script. The outputs are given
as N F , which is the particular N-grams frequency of a particular training or a
b is the N-grams of the training proﬁle and the ngmk
target proﬁle. The ngmL
a
is the N-grams of the target proﬁle. The DM (L) is the distance measurement
between the training and target proﬁles.

At the beginning of experiment, the experimental dataset is set to a particular
script, D ← ˆS, and the boundary of that script is set to ˆSbegin and ˆSend as shown
on line 8 and 9 in Fig. 4. For each of a particular language, Li which is a subset
of a particular script, do the looping from line 11 to 22 until the end of the
languages of that script. Then, for each particular document, dj , do the looping
from line 12 to 18 until the end of the document in the dataset. If the particular
N-grams, ngm is between the boundary of ˆSbegin and ˆSend, then ﬁnd the total of
ngmd, in the particular document, dj. Next, ﬁnd the
that particular N-grams,
N-grams weighting as line 18 and proceed to next document. Otherwise, set the
particular document, dj as problematic document and proceed to next document.
For line 19 until 21, it is used to ﬁnd out the N-grams sequence of particular
language and then set the features as the N-grams are ordered in descending.
The process of N-grams feature selection is repeated until the end of the other
languages in that script as shown in line 23. The training process is ended on line

(cid:6)

Improved N-grams Approach for Web Page Language Identiﬁcation

9

INPUT: 

1. 
2. 
3.  PARAMETERS: 
4. 

D, is a data set of experiments 

dj, is the particular document j. Li, is the particular language i. (cid:1845)(cid:4632), is the particular  
script. (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041), is the begin codepoint of a particular script. (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031), is the end codepoint 
of particular script. 

5.  OUTPUT: 
6. 

(cid:1840)(cid:1832), Particular N-grams frequency in a document or data set. (cid:1866)(cid:1859)(cid:1865)(cid:3029)
training profiles. (cid:1866)(cid:1859)(cid:1865)(cid:3028)
measurement between training profiles and target profiles, and minimum (cid:1830)(cid:1839)(cid:4666)(cid:1838)(cid:4667) is 
selected as the winner or actual output. 

(cid:3038), N-grams of the target profiles. (cid:1830)(cid:1839)(cid:4666)(cid:1838)(cid:4667), distance 

(cid:3013), N-grams of the 

7.  BEGIN
8. 
9. 
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.

(cid:1830) (cid:1370) (cid:1845)(cid:4632);  
set (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) and (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031); 
for each (cid:1838)(cid:3036) (cid:1488) (cid:1845)(cid:4632) do

for each (cid:1856)(cid:3037) (cid:1488) (cid:1830) do

//set the training data set to a particular script. 
//based on the selected script 

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031);  
(cid:1856)(cid:3037) (cid:3397) (cid:883); 

else 

set (cid:1856)(cid:3037) as error document; 
(cid:1856)(cid:3037) (cid:3397) (cid:883); continue; 

//proceed to next document 

find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
(cid:3005)
(cid:3031)(cid:2880)(cid:2869)

(cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963)
(cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932)
(cid:3013); 
sort (cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:1866)(cid:1859)(cid:1865)(cid:3029)
(cid:3013); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:1866)(cid:1859)(cid:1865)(cid:3029)

; 

//refer to N-grams approach 

(cid:3013)
//trained features of a language is set to (cid:1866)(cid:1859)(cid:1865)(cid:3029)

(cid:1838)(cid:3036) (cid:3397) (cid:883)(cid:482)  
//set to other languages of that particular script 
repeat the process from line 11 to 22 until the end of the languages of script; 
end training
set (cid:1856)(cid:3053) as testing document

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then 
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031); 

else 

set (cid:1856)(cid:3053) as error document; 

(cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
(cid:3038); 
sort (cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:1866)(cid:1859)(cid:1865)(cid:3028)
(cid:3038); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:1866)(cid:1859)(cid:1865)(cid:3028)

//refer to N-grams approach 

(cid:3038)
//testing features of a document is set to (cid:1866)(cid:1859)(cid:1865)(cid:3028)

find (cid:1830)(cid:1839)(cid:4666)(cid:1838)(cid:4667) (cid:3404) (cid:963)

(cid:3012)
(cid:3038)(cid:2880)(cid:2869)

(cid:4678)(cid:3495)(cid:3435)(cid:1866)(cid:1859)(cid:1865)(cid:3028)

(cid:3038) (cid:3398) (cid:1866)(cid:1859)(cid:1865)(cid:3029)
(cid:3013)(cid:3439)

(cid:2870)

(cid:4679)

(cid:481) (cid:1875)(cid:1860)(cid:1857)(cid:1870)(cid:1857)(cid:3)(cid:1838) (cid:1488) (cid:4670)(cid:883)(cid:481) (cid:1861)(cid:4671)

34.
35. END 

set minimum (cid:1830)(cid:1839)(cid:4666)(cid:1838)(cid:4667) as the winner 

Fig. 4. Algorithm of original N-grams (ONG) approach [28]

(cid:6)

24. We have to set the testing document as dz, then the weight of one particular
ngmd if ﬁgured out. If the ngm is between the boundary of ˆSbegin
N-grams,
and ˆSend the it is a candidate language, otherwise the set of dz is treated as
problematic document. After that, the testing features of a document is set to
ngmk
a. Finally, the process of ﬁnding the distance measurement between the
training and testing proﬁles is represented as DM (L) where the smallest one is
selected as a winner.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10

A. Selamat

3.3 Modiﬁed N-grams Approach

Fig. 5. System ﬂow of the language identiﬁcation process [29]

The modiﬁed N-grams (MNG) approach has been proposed by Choong et
al. [29], which is an enhancement of original N-grams (ONG) approach. In the
process design, a set of training proﬁles has been constructed by converting the
training texts in various languages, scripts, and character encoding schemes into
the N-grams. The generated training proﬁle contained a set of distinct N-grams
without frequency of occurrence of the N-grams. In the same way, the system
has converted the target text into a target proﬁle. The system then measured the
matching rates of N-grams between the target proﬁle and the training proﬁles.
The system classiﬁed the target proﬁle belonging to the training proﬁle that

Improved N-grams Approach for Web Page Language Identiﬁcation

11

yield the highest matching rate [29]. Fig. 5 shows the process ﬂow of modiﬁed
N-grams.

Unlike many other N-grams based approach, the modiﬁed N-grams approach
does not depending on the N-grams frequency. Instead, the modiﬁed N-grams
approach uses a Boolean method to decide the output of the matching. The
Boolean method returns a value of 1 if the N-grams from the target proﬁles
are found among the training proﬁles. The Boolean method returns a value of
0 if there is no match from the target proﬁles. After all of the N-grams in the
target proﬁles have been compared with the training proﬁles, the system derives
the matching rate by dividing the total match values and the total number of
distinct N-grams in the target proﬁles as follows:

R (L) =

n(cid:2)

x=1

B (x)
n

(2)

where B(x) = 0 if sx did not match with ty and B(x) = 1 if sx match with
ty where y ∈ [1, m]. Equation 2 shows the matching mechanism has been used
by Choong et al. [29], where the target proﬁle is s; the number of distinct N-
grams in s is n; the list of N-grams in s = {s1, s2, s3, · · · , sn}; the training
proﬁle is t; the number of distinct N-grams in training proﬁle is m; the list of
N-grams in t = {t1, t2, t3, · · · , tm}. R (L) is the rate of a particular language,
L, at which the xth distinct N-grams in the target proﬁle matches with the
yth distinct N-grams in the training proﬁle. B (x) is the Boolean value that
corresponds to the matching rates between sx and ty. The highest value of a
particular language, R (L), is selected as the winner. As the modiﬁed N-grams
approach is having problems with the accuracy of language identiﬁcation, this
method cannot perform a correct identiﬁcation if two or more languages found
with the same matching rate.

Fig. 6 shows the algorithm that has been applied on the modiﬁed N-grams
approach. The input is a dataset of experiments, D. The parameter dj is used
to represent the particular document. The j and Li are the particular language
i and the ˆS represents the particular script of languages. The parameter ˆSbegin
represents the beginning of codepoint of a particular script, and the ˆSend repre-
sents the end of codepoint of a particular script. The output of N F is referring
to the particular N-grams frequency of a particular training or target proﬁle.
The ty represents the N-grams of the training proﬁle and the sx represents the
N-grams of the target proﬁle. The R (L) represents the matching rates between
the training and target proﬁles.

The process involved in modiﬁed N-grams approach is similar to the original
N-grams approach except the steps shown on line 20, 21, 31, 32, 33, and 34 in
Fig. 6. The ty and sx are two paraments that represent the modiﬁed N-grams in
the training and testing proﬁles. The steps that are shown on line 33 are used to
ﬁnd the R (L) based on the matching rate of a particular language. If a Boolean
rate B (x), is equivalent to true then the B (x) is set to true.

12

A. Selamat

INPUT: 

1. 
2. 
3.  PARAMETERS: 
4. 

D, is a data set of experiments 

dj, is the particular document j. Li, is the particular language i. (cid:1845)(cid:4632), is the particular  
script. (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041), is the begin codepoint of a particular script. (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031), is the end codepoint 
of particular script. 

5.  OUTPUT: 
6. 

(cid:1840)(cid:1832), Particular N-grams frequency in a document or data set. (cid:1872)(cid:3052), N-grams of the 
training profiles. (cid:1871)(cid:3051), N-grams of the target profiles. (cid:1844)(cid:4666)(cid:1838)(cid:4667), distance  measurement 
between training profiles and target profiles, and maximum (cid:1844)(cid:4666)(cid:1838)(cid:4667) is selected as the 
winner or actual output. 

(cid:1830) (cid:1370) (cid:1845)(cid:4632);  
set (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) and (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031); 
for each (cid:1838)(cid:3036) (cid:1488) (cid:1845)(cid:4632) do

for each (cid:1856)(cid:3037) (cid:1488) (cid:1830) do

//set the training data set to a particular script. 
//based on the selected script 

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031);  
(cid:1856)(cid:3037) (cid:3397) (cid:883); 

else 

set (cid:1856)(cid:3037) as error document; 
(cid:1856)(cid:3037) (cid:3397) (cid:883); continue; 

//proceed to next document 

(cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932)

; 

//refer to N-grams approach 

find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
(cid:3005)
(cid:3031)(cid:2880)(cid:2869)

(cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963)
sort (cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:1872)(cid:3052); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:1872)(cid:3052); 

//trained features of a language is set to (cid:1872)(cid:3052)

(cid:1838)(cid:3036) (cid:3397) (cid:883)(cid:482)  
//set to other languages of that particular script 
repeat the process from line 11 to 22 until the end of the languages of script; 
end training
set (cid:1856)(cid:3053) as testing document

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then 
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031); 

else 

set (cid:1856)(cid:3053) as error document; 

7.  BEGIN
8. 
9. 
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.

//refer to N-grams approach 

(cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
sort (cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:1871)(cid:3051); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:1871)(cid:3051); 

//testing features of a document is set to (cid:1871)(cid:3051)

find (cid:1844)(cid:4666)(cid:1838)(cid:4667) (cid:3404) (cid:963)

(cid:481) (cid:1875)(cid:1860)(cid:1857)(cid:1870)(cid:1857)(cid:3)(cid:1828)(cid:4666)(cid:1876)(cid:4667) (cid:3404) (cid:3420)

(cid:3041)
(cid:3051)(cid:2880)(cid:2869)

(cid:3003)(cid:4666)(cid:3051)(cid:4667)

(cid:3041)

(cid:882)(cid:3)(cid:1861)(cid:1858)(cid:3)(cid:1871)(cid:3051)(cid:3)(cid:1856)(cid:1861)(cid:1856)(cid:3)(cid:1866)(cid:1867)(cid:1872)(cid:3)(cid:1865)(cid:1853)(cid:1872)(cid:1855)(cid:1860)(cid:1857)(cid:1856)(cid:3)(cid:1875)(cid:1861)(cid:1872)(cid:1860)(cid:3)(cid:1872)(cid:3052)
(cid:883)(cid:3)(cid:1861)(cid:1858)(cid:3)(cid:1871)(cid:3051)(cid:3)(cid:1865)(cid:1853)(cid:1872)(cid:1855)(cid:1860)(cid:1857)(cid:1856)(cid:3)(cid:1875)(cid:1861)(cid:1872)(cid:1860)(cid:3)(cid:1872)(cid:3052)

34.
35. END 

set maximum (cid:1844)(cid:4666)(cid:1838)(cid:4667) as the winner 

Fig. 6. Algorithm of modiﬁed N-grams (MNG) approach [29]

3.4 Improved N-grams Approach

The improved N-grams (ING) approach is an enhancement of the original N-
grams approach. The ING approach makes use of the N-grams frequency (N F ),
and the minimum feature position (F P ). Fig. 7 shows the ﬂow of the proposed
improved N-grams approach by using the N F and F P . Similar to the original

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Improved N-grams Approach for Web Page Language Identiﬁcation

13

N-grams (ONG) approach, the ING approach uses rank order statistics in order
to produce the training and testing proﬁles. However, the proposed improved
N-grams (ING) approach uses the N-grams frequency (N Fq) that has been ob-
tained in the testing document and feature position (F Pp) of the training proﬁle.
The N-grams frequency of the training proﬁle (N Fp) is given by Eq. 6 and the
feature position of the training proﬁle (F Pp) is given by the index of feature
after rank order statistics. The ING approach will show that diﬀerent languages
will produce diﬀerent feature position (F P ) although the particular feature is
using the same N-grams. Initially, the maximum N-grams frequency, N Fq will
be identiﬁed using the Eq. 4 if the true condition is becoming the predicted
output. Otherwise, the feature position, F Pp will be identiﬁed when the type of
language is identiﬁed. If these two parameters fail to identify the type of lan-
guage in the document, then the values of N F and F P will be produced again
by reducing 10% of the end of the particular testing datasets. Finally, the actual
output, ω (L) will be predicted through the maximum N-grams frequency, N F .
The minimum feature position, F P , is given by Eq. 3.

ω (L) = {max (N F (L)) |min (F P (L)) }

(cid:2)

N F (L) =

N Fq where ngmq f ound in ngmp

(cid:2)

F P (L) =

F Pp where ngmq f ound in ngmp

(3)

(4)

(5)

Fig. 8 shows the algorithm that has been applied on the proposed improved
N-grams (ING) approach. The input is a dataset of experiments (D) and the
parameter of dj represents the particular document j . The parameter Li rep-
resents the particular language of i. The parameter ˆS represents the particular
script of languages and the ˆSbegin represents the beginning of codepoint for a
particular script. The parameter ˆSend represents the end of codepoint for a par-
ticular script. The output (N F ) is used to represent the particular N-grams
frequency of a particular training or target proﬁle. The F P is used to represent
the feature position of the training and testing proﬁles and the ω (L) represents
the output of the decision.

Similarly, the process of the proposed improved N-grams (ING) approach is
similar to the original N-grams (ONG) approach as shown in Fig. 6 except the
conditions state on lines 20, 21, 31, 32, 33, and 34, respectively. The N Pp and
F Pp represent the N-grams frequency and feature position of training proﬁle,
respectively. The N Pq and F Pq are N-grams frequency and feature position of
target proﬁle, respectively. On line 33, the algorithm it is used to ﬁnd out the
ω (L) by selecting the value from the maximum value of N Fq (L) followed by the
minimum value of F Pp (L). If both N Fq (L) and F Pp (L) are failed to produce

14

A. Selamat

(cid:3)

(cid:3)

Training
Web pages

(cid:3)

Target
Web pages

N-gram encoder

Training
profiles

(cid:3)

Target
profiles

Measure N-grams frequency & position 
rates between target profile and all training profiles

Yes

Find maximum N-grams frequency

No

No
(Reduce 
10% of the 
target text)

Find minimum N-grams position

Yes

Return actual language of training 
profile that gives maximum rate

Fig. 7. The ﬂow of the proposed improved N-grams (ING) approach

Improved N-grams Approach for Web Page Language Identiﬁcation

15

INPUT: 

1. 
2. 
3.  PARAMETERS: 
4. 

D, is a data set of experiments 

dj, is the particular document j. Li, is the particular language i. (cid:1845)(cid:4632), is the particular  
script. (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041), is the begin codepoint of a particular script. (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031), is the end codepoint 
of particular script. 

5.  OUTPUT: 
6. 

(cid:1840)(cid:1832), Particular N-grams frequency of training of target profile. (cid:1832)(cid:1842), is the feature 
position of training or target profile. Winner is selected from maximum (cid:1840)(cid:1832)(cid:4666)(cid:1838)(cid:4667) or 
minimum (cid:1832)(cid:1842)(cid:4666)(cid:1838)(cid:4667) as(cid:3)(cid:2033)(cid:4666)(cid:1838)(cid:4667). 

7.  BEGIN
8. 
9. 
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35. END 

(cid:1830) (cid:1370) (cid:1845)(cid:4632);  
set (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) and (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031); 
for each (cid:1838)(cid:3036) (cid:1488) (cid:1845)(cid:4632) do

for each (cid:1856)(cid:3037) (cid:1488) (cid:1830) do

//set the training data set to a particular script. 
//based on the selected script 

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031);  
(cid:1856)(cid:3037) (cid:3397) (cid:883); 

else 

set (cid:1856)(cid:3037) as error document; 
(cid:1856)(cid:3037) (cid:3397) (cid:883); continue; 

//proceed to next document 

find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
(cid:3005)
(cid:3031)(cid:2880)(cid:2869)

(cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932)
(cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963)
; 
sort (cid:1840)(cid:1832)(cid:3013)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:4668)(cid:1840)(cid:1832)(cid:3043)(cid:481) (cid:1832)(cid:1842)(cid:3043)(cid:4669); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:4668)(cid:1840)(cid:1832)(cid:3043)(cid:481) (cid:1832)(cid:1842)(cid:3043)(cid:4669);  //training profile features are set to (cid:1840)(cid:1832)(cid:3043)(cid:481) (cid:1832)(cid:1842)(cid:3043)

//refer to N-grams approach 

(cid:1838)(cid:3036) (cid:3397) (cid:883)(cid:482)  
//set to other languages of that particular script 
repeat the process from line 11 to 22 until the end of the languages of script; 
end training
set (cid:1856)(cid:3053) as testing document

if (cid:1845)(cid:4632)(cid:3029)(cid:3032)(cid:3034)(cid:3036)(cid:3041) (cid:3409) (cid:1866)(cid:1859)(cid:1865) (cid:3409) (cid:1845)(cid:4632)(cid:3032)(cid:3041)(cid:3031) then 
find (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031); 

else 

set (cid:1856)(cid:3053) as error document; 

//refer to N-grams approach 

(cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:3404) (cid:963) (cid:1866)(cid:1859)(cid:1865)(cid:3031) (cid:1846)(cid:3031)(cid:932) ; 
sort (cid:1840)(cid:1832)(cid:4666)(cid:1866)(cid:1859)(cid:1865)(cid:4667) (cid:1372) (cid:4668)(cid:1840)(cid:1832)(cid:3044)(cid:481) (cid:1832)(cid:1842)(cid:3044)(cid:4669); 
set (cid:1858)(cid:1857)(cid:1853)(cid:1872)(cid:1873)(cid:1870)(cid:1857)(cid:1871) (cid:3404) (cid:4668)(cid:1840)(cid:1832)(cid:3044)(cid:481) (cid:1832)(cid:1842)(cid:3044)(cid:4669);  //target profile features are set to (cid:1840)(cid:1832)(cid:3044)(cid:481) (cid:1832)(cid:1842)(cid:3044)
find (cid:2033)(cid:4666)(cid:1838)(cid:4667) (cid:3404) (cid:3419)(cid:1865)(cid:1853)(cid:1876)(cid:3435)(cid:1840)(cid:1832)(cid:4666)(cid:1838)(cid:4667)(cid:3439)(cid:513)(cid:1865)(cid:1861)(cid:1866)(cid:3435)(cid:1832)(cid:1842)(cid:4666)(cid:1838)(cid:4667)(cid:3439)(cid:3423)
set (cid:2033)(cid:4666)(cid:1838)(cid:4667) as the winner, otherwise repeat line 25 by reducing 10% of the data, (cid:1856)(cid:3053)

Fig. 8. Algorithm of the proposed improved N-grams (ING) approach

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16

A. Selamat

the output then process will be repeated based on the statement on line 25 by
reducing 10% datasets at the end of dz.

4 Experimental Setup

Figure 9 shows the methodology that has been designed for web page language
identiﬁcation. It is divided into several stages: pre-processing process, script
determination process, sentence segmentation process, feature selection process,
feature extraction process, and language identiﬁcation process. The details on
each of the process are explained as follows:

4.1 Dataset Preparations Process

In this stage, the datasets with the predeﬁned languages have been collected
from the BBC (British Broadcasting) news website. The datasets have been
divided into two categories, training and testing sets. The training dataset is
used to determine the features of a particular language through certain statistical
analysis that will be explained in the section on feature selection. The testing
dataset is used to validate the features found in the training process. The total
dataset of each language is 1000 pages and the validation process is done based
on two particular language scripts belonging to the Arabic and Roman web
documents.

The languages used for Arabic scripts document identiﬁcation are Arabic,
Persian, Urdu, and Pashto. The languages used for Roman scripts documents
language identiﬁcations are Azeri, English, Indonesian, Serbian, Somali, Spanish,
Turkish, and Vietnamese. The dataset that has been collected contain a mono-
lingual web page will be used for testing the monolingual language identiﬁcation
of web document. The multilingual validation of web document is done based
on sentences that have been derived from the monolingual web page because a
sentence is the smallest unit of a text that gives a certain meaning.

4.2 Training Documents Process

After the preparation of the dataset has been completed, the training and test-
ing documents will be used in the pre-processing process in order to ﬁlter out
the noise exist in the text documents. Example of noises are programming code,
broken string, and unrecognized string, etc. Initially, the programming codes
along with the downloaded web page will be removed by using the HTMLEdi-
torKit.ParserCallback open source toolkit [5] . It is followed by the unicode con-
version from the original encoding [29]. After the conversion process has been
completed, the broken or unrecognized strings are removed for preventing the
bias during a statistical analysis process. Then, the pre-processed dataset will
be used for further processing that will be explained in Section 4.3.

Improved N-grams Approach for Web Page Language Identiﬁcation

17

4.3 Preprocessing of Documents Process

The pre-processed document will be passed to script determination process in
order to verify whether that document comprises the same script characters
or diﬀerent scripts. It is assumed that a text with the same script characters
is written using one particular language only and a text with diﬀerent scripts
characters is written in a multilingual web page. However, it may happen that a
text with same script characters is written in multiple languages. However, this
situation has not been taken into consideration in this study. There are certain
scripts that belong to one particular language only such as a unicode script of
Hangul compatibility Jamo belongs to the Hangul language only [29]. As it is a
monolingual script, it can easily be associated with the corresponding language.

4.4 Sentence Segmentations Process

The sentence segmentation process is done in order to derive the sentences of the
texts. It is done based on the punctuation such as full stop, question mark, ex-
clamation mark, etc. Sentences are basically used on the multilingual web page
identiﬁcation. In any particular web page, if the content of the texts contain
about 70% of English and 30% of Mandarin languages, then these sentences can
be considered as the smallest units for language identiﬁcation process. In other
words, a sentence in the text must belong to a particular script and language.
It is assumed that the words and phrases are not practical to be considered as
the smallest unit to be used for a language identiﬁcation process because of the
similar attributes may exist in more than one languages [29]. The complexity of
segmenting the Chinese and Japanese sentences is that the Chinese and Japanese
sentences are composed of characters without any spaces and even none of any
punctuation in Chinese classiscal texts. Therefore Chinese character segmenta-
tion which is to ﬁnd the ﬁnal word boundaries is the crucial task for Chinese
language identiﬁcation. Research has been done to solve this problems address
by Ng and Lee [17].

4.5 Feature Selections Process

The feature selection process is particularly used for training process. It is a pro-
cess to reduce the dimension of features that can be used for language prediction.
The N-grams approach has been proposed by Cavnar et al. [28] that used the
algorithm to derive the sub-sequence string of a text. In this study, the mixed of
unigram, bigrams, and trigrams are used as the feature selection algorithm. The
mixed unigram, bigrams, and trigrams are referred as mixed N-grams, ngm. The
mixed N-grams frequency of a particular language, N FL (ngm), is the frequency
of a particular N-grams in the texts against the total frequency of equivalent
sized of N-grams as shown in Eq. 6. The features will be selected from among
the high mixed N-grams frequency of average training dataset. The feature se-
lection process on each of the documents belonging to diﬀerent languages has
been done separately to ensure the process is done accurately.

18

A. Selamat

4.6 Feature Extractions Process

The feature extraction process is used on the testing dataset for language predic-
tion of the web documents. It is based on the mixture of N-grams frequency as
shown in Eq. 6. However, the mixed N-grams frequency used for testing dataset
does not take into account the average value of the whole data set based on Eq.
6 as follows:

D(cid:2)

N FL (ngm) =

(ngmd/Td)

(6)

d=1

where the N-grams frequency of the learning proﬁle (N FL), from a set of doc-
uments (d = 1, . . . , D) and Td represents the target documents. In other words,
the feature extraction process will use of all the N-grams that have been pro-
duced from testing dataset. The feature selection process will only choose the
features of the training dataset that matched with the threshold values. The fea-
tures that have been produced in the feature extraction process will be compared
to the features of each language found in the feature selection.

4.7 Language Identiﬁcation Algorithms

The language identiﬁcation algorithms are used to determine the predeﬁned lan-
guage of a particular data. Three language models are selected for performance
evaluation: the original N-grams (ONG) approach [28], the modiﬁed N-grams
(MNG) approach [29], and the proposed improved N-grams (ING) approach are
used to identify the language belongs to a web document as described in Sec-
tion 3.2, 3.3, and 3.4, respectively . Basically, these algorithms are based on the
feature position, appearance, and frequencies. The proposed algorithm will com-
pare the score that has been produced by each of the languages and the output
will be the winner or the so-called actual output. Then, the actual output will be
compared to the desired output in order to justify the performance of identiﬁer
as stated in the Section 4.8.

Table 1. The deﬁnitions of the parameters a, b, and c which are used in Table 2

Value Meaning

a The system and the expert agree with the assigned category
b The system disagrees with the assigned category but the expert did
c The expert disagrees with the assigned category but the system did
d The system and the expert disagree with the assigned category

4.8 Evaluation Measurements

The proposed approaches are evaluated using the standard of information re-
trieval measurements that are precision (p), recall (r), and F 1. They are deﬁned
as follows:

precision =

a
a + b

(7)

Improved N-grams Approach for Web Page Language Identiﬁcation

19

Table 2. The decision matrix for calculating the classiﬁcation accuracies

Expert System

Yes No
a
b
c d

Yes
No

recall =

a
a + c

F 1 =

2
precision + 1

1

recall

(8)

(9)

where the values of a, b, and c are deﬁned in Table 1. The relationship between
the classiﬁer and the expert adjustment is expressed using four values as shown
in Table 2. The F 1 measure is a kind of average of precision and recall.

The precision describes the probability that a web document (randomly se-
lected) retrieved document is relevant to the certain language. The recall de-
scribes the probability that a relevant web document is retrieved. The overall
evaluation measure of the language identiﬁcation on Arabic and Roman scripts
is F 1 that describes the average between precision and recall.

5 Experimental Results and Discussions

In this study, two experiments have been conducted to examine the proposed
approaches in identifying the languages exist in the given web pages. The ﬁrst
experiment is to measure the eﬀectiveness of web page language identiﬁcation
using Arabic and Romans scripts based web documents based on the precision,
recall, and F 1 measurements. Second, the experiment is done based on sentence-
based identiﬁcation of multilingual web page. The experimental results are stated
as follows:

5.1 Eﬀectiveness of Web Page Language Identiﬁcation

The eﬀectiveness of web page language identiﬁcation as shown in Table 3 has
been evaluated using precision, recall, and F 1 measures of Arabic scripts used
for language identiﬁcation. Four Arabic languages such as Arabic, Persian, Urdu,
and Pashto have been used in the experiment. Each language dataset is divided
into training and testing datasets. From the experiments, the average precision,
recall, and F 1 measures of the original N-grams (ONG) approach is 66.60%,
61.41%, and 61.63%, respectively. However, the results of the experiments using
the modiﬁed and the proposed improved N-grams approaches are 100% on both
approaches. Table 2 shows the precision, recall, and F 1 measures of Roman script
web page language identiﬁcation. Eight languages of Roman script such as Azeri,

20

A. Selamat

Table 3. The precision, recall, and F 1 measures of Arabic script web page language
identiﬁcation

Language Class Arabic Persian Urdu Pashto Average (%)

99.60
97.65
98.62

93.80
48.00
63.50

Original N-grams (ONG) Approach
Precision (%)
0.00
73.00
0.00 100.00
Recall (%)
F 1 (%)
84.39
0.00
Modiﬁed N-grams (MNG) Approach
Precision (%)
Recall (%)
F 1 (%)
Improved N-grams (ING) Approach
Precision (%)
Recall (%)
F 1 (%)

100.00 100.00 100.00 100.00
100.00 100.00 100.00 100.00
100.00 100.00 100.00 100.00

100.00 100.00 100.00 100.00
100.00 100.00 100.00 100.00
100.00 100.00 100.00 100.00

66.60
61.41
61.63

100.00
100.00
100.00

100.00
100.00
100.00

English, Indonesian, Serbian, Somali, Spanish, Turkish, and Vietnamese have
been used in the experiment. The average precision, recall, and F 1 measures of
the original N-grams approach are 74.75%, 89.37%, and 72.33%, respectively.
However, the other methods have shown 100% in average precision, recall, and
F 1 measures. Therefore, it is concluded that original N-grams approach give the
worst results compared to other methods in terms of precision, recall, and F 1
measures.

5.2 Accuracy of Web Page Language Identiﬁcation

Figures 10 and 11 show the results of web page language identiﬁcation accu-
racy against the threshold value used. For the Arabic scripts web page lan-
guage identiﬁcation, the accuracy of original N-grams (ONG) approach on the
threshold values of 10, 20, 30, 40, 50, 100, 200, 300, 400, and 500 are 85.40%,
97.85%, 85.05%, 85.65%, 91.40%, 88.55%, 26.20%, 5.85%, 1.55%, and 0.60%,
respectively. However, for the modiﬁed N-grams (MNG) approach, the accu-
racy are 38.90%, 99.90%, 99.90%, 99.90%, 99.90%, 99.90%, 100.00%, 99.90%,
99.90%, and 99.90%, respectively. Furthermore, for the proposed improved N-
grams (ING) approach, the accuracies are 99.55%, 99.90%, 99.90%, 100.00%,
100.00%, 100.00%, 100.00%, 99.90%, 99.90%, and 99.90%, respectively.

For the Roman script web page language identiﬁcation, the accuracy of origi-
nal N-grams (ONG) approach on threshold values of 10, 20, 30, 40, 50, 100, 200,
300, 400, and 500 are 95.95%, 96.65%, 97.48%, 98.18%, 98.38%, 90.45%, 52.55%,
24.38%, 15.22%, and 6.98% respectively. However, when the modiﬁed N-grams
(MNG) approach has been used for the experiments, the accuracies are 25%,
39.2%, 74.38%, 89%, 91.9%, 92.42%, 99.58%, 99.58%, 99.58%, and 99.85%, re-
spectively. For the proposed improved N-grams (ING) approach, the accuracies

Improved N-grams Approach for Web Page Language Identiﬁcation

21

Table 4. The precision, recall, and F 1 measures of Roman script web page language
identiﬁcation

(cid:74)(cid:95)(cid:108)(cid:101)(cid:115)(cid:95)(cid:101)(cid:99) (cid:65)(cid:106)(cid:95)(cid:113)(cid:113) (cid:63)(cid:120)(cid:99)(cid:112)(cid:103) (cid:67)(cid:108)(cid:101)(cid:106)(cid:103)(cid:113)(cid:102) (cid:71)(cid:108)(cid:98)(cid:109)(cid:108)(cid:99)(cid:113)(cid:103)(cid:95)(cid:108) (cid:81)(cid:99)(cid:112)(cid:96)(cid:103)(cid:95)(cid:108) (cid:81)(cid:109)(cid:107)(cid:95)(cid:106)(cid:103) (cid:81)(cid:110)(cid:95)(cid:108)(cid:103)(cid:113)(cid:102) (cid:82)(cid:115)(cid:112)(cid:105)(cid:103)(cid:113)(cid:102) (cid:84)(cid:103)(cid:99)(cid:114)(cid:108)(cid:95)(cid:107)(cid:99)(cid:113)(cid:99) (cid:63)(cid:116)(cid:99)(cid:112)(cid:95)(cid:101)(cid:99) (cid:38)(cid:35)(cid:39)

(cid:77)(cid:112)(cid:103)(cid:101)(cid:103)(cid:108)(cid:95)(cid:106) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113) (cid:38)(cid:77)(cid:76)(cid:69)(cid:39) (cid:63)(cid:110)(cid:110)(cid:112)(cid:109)(cid:95)(cid:97)(cid:102)
(cid:78)(cid:112)(cid:99)(cid:97)(cid:103)(cid:113)(cid:103)(cid:109)(cid:108) (cid:38)(cid:35)(cid:39)
(cid:80)(cid:99)(cid:97)(cid:95)(cid:106)(cid:106) (cid:38)(cid:35)(cid:39)
F 1 (cid:38)(cid:35)(cid:39)

(cid:47)(cid:51)(cid:44)(cid:52)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:55)(cid:55)(cid:44)(cid:46)(cid:47)
(cid:55)(cid:55)(cid:44)(cid:51)(cid:46)
(cid:48)(cid:52)(cid:44)(cid:55)(cid:55)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:54)(cid:47)(cid:44)(cid:47)(cid:53)
(cid:54)(cid:55)(cid:44)(cid:52)(cid:47)

(cid:75)(cid:109)(cid:98)(cid:103)(cid:126)(cid:99)(cid:98) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113) (cid:38)(cid:75)(cid:76)(cid:69)(cid:39) (cid:63)(cid:110)(cid:110)(cid:112)(cid:109)(cid:95)(cid:97)(cid:102)
(cid:78)(cid:112)(cid:99)(cid:97)(cid:103)(cid:113)(cid:103)(cid:109)(cid:108) (cid:38)(cid:35)(cid:39)
(cid:80)(cid:99)(cid:97)(cid:95)(cid:106)(cid:106) (cid:38)(cid:35)(cid:39)
F 1 (cid:38)(cid:35)(cid:39)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:71)(cid:107)(cid:110)(cid:112)(cid:109)(cid:116)(cid:99)(cid:98) (cid:76)(cid:43)(cid:101)(cid:112)(cid:95)(cid:107)(cid:113) (cid:38)(cid:71)(cid:76)(cid:69)(cid:39) (cid:63)(cid:110)(cid:110)(cid:112)(cid:109)(cid:95)(cid:97)(cid:102)
(cid:78)(cid:112)(cid:99)(cid:97)(cid:103)(cid:113)(cid:103)(cid:109)(cid:108) (cid:38)(cid:35)(cid:39)
(cid:80)(cid:99)(cid:97)(cid:95)(cid:106)(cid:106) (cid:38)(cid:35)(cid:39)
F 1 (cid:38)(cid:35)(cid:39)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:49)(cid:50)(cid:44)(cid:50)(cid:46)
(cid:55)(cid:54)(cid:44)(cid:52)(cid:48)
(cid:54)(cid:55)(cid:44)(cid:52)(cid:47)

(cid:54)(cid:54)(cid:44)(cid:48)(cid:46)
(cid:49)(cid:52)(cid:44)(cid:47)(cid:54) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:55)(cid:49)(cid:44)(cid:53)(cid:49)
(cid:51)(cid:47)(cid:44)(cid:47)(cid:55)
(cid:51)(cid:49)(cid:44)(cid:47)(cid:50)

(cid:51)(cid:55)(cid:44)(cid:54)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:53)(cid:50)(cid:44)(cid:54)(cid:50)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46) (cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:53)(cid:50)(cid:44)(cid:53)(cid:51)
(cid:54)(cid:55)(cid:44)(cid:49)(cid:53)
(cid:53)(cid:48)(cid:44)(cid:49)(cid:49)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)
(cid:47)(cid:46)(cid:46)(cid:44)(cid:46)(cid:46)

for Roman script web page language identiﬁcation are 91.57%, 90.58%, 99.7%,
99.65%, 99.75%, 99.8%, 99.82%, 99.8%, 99.78%, and 99.75%, respectively. From
these two experiments, it is observed that the proposed improved N-grams ap-
proach performs better than original N-grams approach and the modiﬁed N-
grams approach.

5.3 Sentence-Based Identiﬁcation of Multilingual Web Page

Fig. 12 shows the result of sentence-based identiﬁcation of multilingual web page.
The experiment is based on the sentences extracted from a particular text that
has randomly been selected for training and testing of the datasets. The size of
the dataset is 1000 units. Threshold used in this experiment is 50. The average
accuracies of the original, modiﬁed, and proposed improved N-grams approaches
are 39.57%, 97.09%, and 97.95%, respectively. It is noticed that the proposed
improved N-grams (ING) approach performs better than the modiﬁed N-grams
(MNG) approach.

5.4 Noise Tolerance of Language Identiﬁer

An algorithm in computer science is consider as a robust algorithm if it continues
to operate despite noises in the input dataset. In this study, the measurements
used in the experiments such as precision, recall, and F 1 have been used to justify
the robustness of the stated approaches. The modiﬁed and proposed improved
N-grams approaches are more robust than original N-grams (ONG) approach for
web page language identiﬁcation. In other words, these methods perform more
reliably against the noises in the web pages. As observed from the experiment,
the signiﬁcant diﬀerence is that the proposed N-grams approach takes into con-
sideration both the N-grams frequency and the N-grams position in producing

22

A. Selamat

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:11)(cid:12)(cid:13)(cid:5)(cid:14)

(cid:15)(cid:5)(cid:16)(cid:5)(cid:9)(cid:17)(cid:5)(cid:7)(cid:8)(cid:9)(cid:10)(cid:11)(cid:12)(cid:13)(cid:5)(cid:14)

(cid:18)(cid:2)(cid:13)(cid:19)(cid:20)(cid:2)(cid:9)(cid:10)(cid:13)(cid:21)(cid:21)(cid:4)(cid:5)(cid:6)

(cid:22)(cid:10)(cid:2)(cid:4)(cid:20)(cid:14)(cid:7)
(cid:8)(cid:13)(cid:14)(cid:13)(cid:2)(cid:12)(cid:4)(cid:5)(cid:3)(cid:14)(cid:4)(cid:9)(cid:5)

(cid:22)(cid:3)(cid:12)(cid:13)(cid:7)(cid:22)(cid:10)(cid:2)(cid:4)(cid:20)(cid:14)

(cid:8)(cid:4)(cid:29)(cid:29)(cid:13)(cid:2)(cid:13)(cid:5)(cid:14)(cid:7)(cid:22)(cid:10)(cid:2)(cid:4)(cid:20)(cid:14)

(cid:22)(cid:13)(cid:5)(cid:14)(cid:13)(cid:5)(cid:10)(cid:13)(cid:7)
(cid:22)(cid:13)(cid:6)(cid:12)(cid:13)(cid:5)(cid:14)(cid:3)(cid:14)(cid:4)(cid:9)(cid:5)

(cid:37)(cid:13)(cid:21)

(cid:18)(cid:2)(cid:13)(cid:28)(cid:4)(cid:10)(cid:14)(cid:4)(cid:9)(cid:5)(cid:36)

(cid:30)(cid:9)

(cid:23)(cid:13)(cid:3)(cid:14)(cid:11)(cid:2)(cid:13)(cid:7)(cid:22)(cid:13)(cid:24)(cid:13)(cid:10)(cid:14)(cid:4)(cid:9)(cid:5)

(cid:23)(cid:13)(cid:3)(cid:14)(cid:11)(cid:2)(cid:13)(cid:7)(cid:25)(cid:26)(cid:14)(cid:2)(cid:3)(cid:10)(cid:14)(cid:4)(cid:9)(cid:5)

(cid:38)(cid:2)(cid:4)(cid:6)(cid:4)(cid:5)(cid:3)(cid:24)(cid:7)(cid:30)(cid:19)(cid:6)(cid:2)(cid:3)(cid:12)(cid:21)(cid:7)
(cid:31)(cid:38)(cid:30)(cid:32)(cid:33)(cid:7)(cid:34)(cid:20)(cid:20)(cid:9)(cid:2)(cid:3)(cid:10)(cid:35)

(cid:27)(cid:9)(cid:28)(cid:4)(cid:29)(cid:4)(cid:13)(cid:28)(cid:7)(cid:30)(cid:19)(cid:6)(cid:2)(cid:3)(cid:12)(cid:21)(cid:7)
(cid:31)(cid:27)(cid:30)(cid:32)(cid:33)(cid:7)(cid:34)(cid:20)(cid:20)(cid:9)(cid:2)(cid:3)(cid:10)(cid:35)

(cid:41)(cid:3)(cid:5)(cid:6)(cid:11)(cid:3)(cid:6)(cid:13)(cid:7)(cid:39)(cid:28)(cid:13)(cid:5)(cid:14)(cid:4)(cid:29)(cid:4)(cid:10)(cid:3)(cid:14)(cid:4)(cid:9)(cid:5)

(cid:18)(cid:2)(cid:9)(cid:20)(cid:9)(cid:21)(cid:13)(cid:28)(cid:7)(cid:39)(cid:12)(cid:20)(cid:2)(cid:9)(cid:40)(cid:13)(cid:28)(cid:7)
(cid:30)(cid:19)(cid:6)(cid:2)(cid:3)(cid:12)(cid:21)(cid:7)(cid:31)(cid:39)(cid:30)(cid:32)(cid:33)(cid:7)
(cid:34)(cid:20)(cid:20)(cid:9)(cid:2)(cid:3)(cid:10)(cid:35)

(cid:42)(cid:13)(cid:21)(cid:11)(cid:24)(cid:14)(cid:7)(cid:34)(cid:5)(cid:3)(cid:24)(cid:43)(cid:21)(cid:4)(cid:21)

Fig. 9. The process ﬂow of language identiﬁcation

Improved N-grams Approach for Web Page Language Identiﬁcation

23

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:6)(cid:2)(cid:5)(cid:9)(cid:10)(cid:7)(cid:11)(cid:12)(cid:4)(cid:7)(cid:13)(cid:3)(cid:14)(cid:12)(cid:7)(cid:15)(cid:3)(cid:16)(cid:14)(cid:17)(cid:3)(cid:14)(cid:12)(cid:7)(cid:18)(cid:19)(cid:12)(cid:16)(cid:10)(cid:5)(cid:20)(cid:5)(cid:6)(cid:3)(cid:10)(cid:5)(cid:21)(cid:16)

(cid:1)(cid:4)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:1)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:9)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:8)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:6)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:4)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:2)(cid:3)(cid:2)(cid:2)

(cid:35)
(cid:24)
(cid:15)
(cid:11)
(cid:34)
(cid:24)
(cid:24)
(cid:33)

(cid:4)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:6)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:1)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:5)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:7)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:1)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:5)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:7)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:4)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:6)(cid:2)(cid:2)(cid:3)(cid:2)(cid:2)

(cid:32)(cid:25)(cid:11)(cid:29)(cid:21)(cid:25)(cid:23)(cid:16)(cid:27)

(cid:10)(cid:11)(cid:12)(cid:13)(cid:12)(cid:14)(cid:15)(cid:16)(cid:17)(cid:18)(cid:19)(cid:13)(cid:11)(cid:15)(cid:20)(cid:21)(cid:17)
(cid:15)(cid:22)(cid:22)(cid:11)(cid:23)(cid:15)(cid:24)(cid:25)

(cid:26)(cid:23)(cid:27)(cid:12)(cid:28)(cid:12)(cid:29)(cid:27)(cid:17)(cid:18)(cid:19)
(cid:13)(cid:11)(cid:15)(cid:20)(cid:21)(cid:17)(cid:15)(cid:22)(cid:22)(cid:11)(cid:23)(cid:15)(cid:24)(cid:25)

(cid:30)(cid:20)(cid:22)(cid:11)(cid:23)(cid:31)(cid:29)(cid:27)(cid:17)(cid:18)(cid:19)
(cid:13)(cid:11)(cid:15)(cid:20)(cid:21)(cid:17)(cid:15)(cid:22)(cid:22)(cid:11)(cid:23)(cid:15)(cid:24)(cid:25)

Fig. 10. Accuracy of Arabic script web page language identiﬁcation

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:11)(cid:12)(cid:6)(cid:13)(cid:14)(cid:15)(cid:6)(cid:16)(cid:4)(cid:17)(cid:14)(cid:6)(cid:18)(cid:4)(cid:5)(cid:17)(cid:19)(cid:4)(cid:17)(cid:14)(cid:6)(cid:20)(cid:21)(cid:14)(cid:5)(cid:12)(cid:10)(cid:22)(cid:10)(cid:8)(cid:4)(cid:12)(cid:10)(cid:2)(cid:5)

(cid:1)(cid:3)(cid:2)

(cid:1)(cid:2)(cid:2)

(cid:8)(cid:2)

(cid:7)(cid:2)

(cid:5)(cid:2)

(cid:3)(cid:2)

(cid:34)
(cid:23)
(cid:14)
(cid:10)
(cid:33)
(cid:23)
(cid:23)
(cid:32)

(cid:2)

(cid:1)(cid:2)

(cid:3)(cid:2)

(cid:4)(cid:2)

(cid:5)(cid:2)

(cid:6)(cid:2)

(cid:1)(cid:2)(cid:2)

(cid:3)(cid:2)(cid:2)

(cid:4)(cid:2)(cid:2)

(cid:5)(cid:2)(cid:2)

(cid:6)(cid:2)(cid:2)

(cid:9)(cid:10)(cid:11)(cid:12)(cid:11)(cid:13)(cid:14)(cid:15)(cid:16)(cid:17)(cid:18)(cid:12)(cid:10)(cid:14)(cid:19)(cid:20)(cid:16)
(cid:14)(cid:21)(cid:21)(cid:10)(cid:22)(cid:14)(cid:23)(cid:24)

(cid:31)(cid:24)(cid:10)(cid:28)(cid:20)(cid:24)(cid:22)(cid:15)(cid:26)
(cid:25)(cid:22)(cid:26)(cid:11)(cid:27)(cid:11)(cid:28)(cid:26)(cid:16)(cid:17)(cid:18)
(cid:12)(cid:10)(cid:14)(cid:19)(cid:20)(cid:16)(cid:14)(cid:21)(cid:21)(cid:10)(cid:22)(cid:14)(cid:23)(cid:24)

(cid:29)(cid:19)(cid:21)(cid:10)(cid:22)(cid:30)(cid:28)(cid:26)(cid:16)(cid:17)(cid:18)
(cid:12)(cid:10)(cid:14)(cid:19)(cid:20)(cid:16)(cid:14)(cid:21)(cid:21)(cid:10)(cid:22)(cid:14)(cid:23)(cid:24)

Fig. 11. Accuracy of Roman script web page language identiﬁcation

(cid:33)(cid:33)(cid:25)(cid:32)(cid:26)

(cid:33)(cid:32)(cid:25)(cid:24)(cid:33)

(cid:33)(cid:27)(cid:25)(cid:27)(cid:28)

(cid:33)(cid:33)(cid:25)(cid:32)(cid:34)

(cid:33)(cid:28)(cid:25)(cid:30)(cid:34)

(cid:33)(cid:32)(cid:25)(cid:33)(cid:34)

24

A. Selamat

(cid:30)(cid:26)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:30)(cid:24)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:29)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:28)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:27)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:26)(cid:24)(cid:25)(cid:24)(cid:24)

(cid:24)(cid:25)(cid:24)(cid:24)

(cid:15)

(cid:42)

(cid:13)
(cid:8)
(cid:41)
(cid:37)
(cid:6)
(cid:2)
(cid:40)
(cid:37)
(cid:37)
(cid:35)

(cid:27)(cid:30)(cid:25)(cid:34)(cid:26)

(cid:31)(cid:33)(cid:25)(cid:34)(cid:32)

(cid:31)(cid:32)(cid:25)(cid:28)(cid:26)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:3)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)(cid:10)(cid:4)(cid:2)(cid:6)(cid:11)(cid:12)(cid:8)(cid:13)(cid:1)(cid:9)(cid:14)(cid:15)

(cid:21)(cid:11)(cid:22)(cid:2)(cid:17)(cid:23)(cid:20)(cid:18)(cid:8)(cid:9)(cid:10)(cid:4)(cid:2)(cid:6)(cid:11)(cid:12)(cid:8)(cid:13)(cid:21)(cid:9)(cid:14)(cid:15)

(cid:16)(cid:17)(cid:18)(cid:3)(cid:19)(cid:3)(cid:20)(cid:18)(cid:8)(cid:9)(cid:10)(cid:4)(cid:2)(cid:6)(cid:11)(cid:12)(cid:8)(cid:13)(cid:16)(cid:9)(cid:14)(cid:15)

(cid:35)(cid:22)(cid:22)(cid:2)(cid:17)(cid:6)(cid:37)(cid:39)

(cid:35)(cid:2)(cid:6)(cid:36)(cid:3)(cid:37)

(cid:38)(cid:17)(cid:11)(cid:6)(cid:5)

(cid:35)(cid:23)(cid:20)(cid:2)(cid:6)(cid:4)(cid:20)

Fig. 12. Accuracy of sentence based language identiﬁcation

the accurate results. However, this situation may be diﬀerent if other domain
dataset is used for the experiments.

6 Conclusion

Language identiﬁcation is a core technology in various multilingual applications,
especially in web services. This is a challenging task because of the ever in-
creasing numbers of internet users and web documents existed in the internet.
There are tremendous number of web pages emerging everyday. The problem is
further aggravated by the complexity and diversity of the emerging of web ap-
plications and services. In this study, a web page language identiﬁcation system
has been proposed using an improved modiﬁed N-grams approach. The proposed
improved N-grams approach has been compared using the conventional meth-
ods namely the original N-grams approach and the modiﬁed N-grams approach.
The proposed improved N-grams approach has been able to determine the ac-
curacy of the experimental datasets. The issues of computational cost and the
scalability limitations have not been addressed in this study due to constraint of
the existing computational facilities. In future studies, it is necessary to analyze
such parameters to increase the reliability of the proposed approach used for
web page language identiﬁcation.

Acknowledgments. The author wishes to thank Mr. Ng Choon Ching for
developing the experiments for this research. This work is supported by the
Ministry of Higher Education Malaysia (MOHE) under Fundamental Research

Improved N-grams Approach for Web Page Language Identiﬁcation

25

Grant Scheme (FRGS) and Universiti Teknologi Malaysia under the Research
University Funding Scheme (Q.J130000.7110.02H47). The author is also grateful
to the anonymous reviewers for their valuable and insightful comments.

References

1. Gordon, R.G.: Ethnologue: Languages of the world. In: SIL International Dallas,

TX (2005)

2. Abd Rozan, M.Z., Mikami, Y., Abu Bakar, A.Z., Vikas, O.: Multilingual ict edu-
cation: Language observatory as a monitoring instrument. In: Proceedings of the
South East Asia Regional Computer Confederation 2005: ICT Building Bridges
Conference, Sydney, Australia, vol. 46, pp. 53–61 (2005)

3. Maclean, D.: Beyond english: Transnational corporations and the strategic man-
agement of language in a complex multilingual business environment. Management
Decision 44(10), 1377–1390 (2006)

4. Redondo-Bellon, I.: The eﬀects of bilingualism on the consumer: The case of spain.

European Journal of Marketing 33(11/12), 1136–1160 (1999)

5. Selamat, A., Ng, C.C.: Arabic script web page language identiﬁcations us-
ing decision tree neural networks. Pattern Recognition, Elsevier Science (2010),
doi:10.1016/j.patcog.2010.07.009

6. Chowdhury, G.G.: Natural language processing. Annual Review of Information

Science and Technology 37(1), 51–89 (2003)

7. Lewandowski, D.: Problems with the use of web search engines to ﬁnd results in

foreign languages. Online Information Review 32(5), 668–672 (2008)

8. Jin, H., Wong, K.F.: A chinese dictionary construction algorithm for information
retrieval. ACM Transactions on Asian Language Information Processing 1(4), 281–
296 (2002)

9. Botha, G., Zimu, V., Barnard, E.: Text-based language identiﬁcation for the south
african languages. In: Proceedings of the 17th Annual Symposium of the Pattern
Recognition Association of South Africa 2006, Parys, South Africa, pp. 7–13 (2006)
10. Ng, C.-C., Selamat, A.: Improve feature selection method of web page language
identiﬁcation using fuzzy artmap. International Journal of Intelligent Information
and Database Systems 4(6), 629–642 (2010)

11. Barroso, N., de Ipi˜na, K.L., Ezeiza, A., Barroso, O., Susperregi, U.: Hybrid ap-
proach for language identiﬁcation oriented to multilingual speech recognition in
the basque context. In: Gra˜na Romay, M., Corchado, E., Garcia Sebastian, M.T.
(eds.) HAIS 2010. LNCS (LNAI), vol. 6076, pp. 196–204. Springer, Heidelberg
(2010)

12. Wang, H., Xiao, X., Zhang, X., Zhang, J., Yan, Y.: A hierarchical system design for
language identiﬁcation. In: 2nd International Symposium on Information Science
and Engineering, ISISE 2009, pp. 443–446 (2010)

13. Amine, A.B., Elberrichi, Z., Simonet, M.: Automatic language identiﬁcation: an
alternative unsupervised approach using a new hybrid algorithm. International
Journal of Computer Science and Applications 7(1), 94–107 (2010)

14. Xiao, H., Yu, L., Chen, K.: An eﬃcient method of language identiﬁcation using
lvq network. In: International Conference on Signal Processing Proceedings, ICSP,
pp. 1690–1694 (2008)

15. ˇReh˚uˇrek, R., Kolkus, M.: Language identiﬁcation on the web: Extending the dic-
tionary method. In: Gelbukh, A. (ed.) CICLing 2009. LNCS (LNAI), vol. 5449, pp.
357–368. Springer, Heidelberg (2009)

26

A. Selamat

16. You, J.-L., Chen, Y.-N., Chu, M., Soong, F.K., Wang, J.-L.: Identifying language
origin of named entity with multiple information sources. IEEE Transactions on
Audio, Speech and Language Processing 16(6), 1077–1086 (2008)

17. Ng, R., Lee, T.: Entropy-based analysis of the prosodic features of chinese dialects.
In: Proceedings - 2008 6th International Symposium on Chinese Spoken Language
Processing, ISCSLP 2008, pp. 65–68 (2008)

18. Deng, Y., Liu, J.: Automatic language identiﬁcation using support vector machines
and phonetic n-gram. In: ICALIP 2008, Proceedings of 2008 International Confer-
ence on Audio, Language and Image Processing, pp. 71–74 (2008)

19. Botha, G., Zimu, V., Barnard, E.: Text-based language identiﬁcation for south
african languages. Transactions of the South African Institute of Electrical Engi-
neers 98(4), 141–148 (2007)

20. Cordoba, R., D’Haro, L., Fernandez-Martinez, F., Macias-Guarasa, J., Ferreiros,
J.: Language identiﬁcation based on n-gram frequency ranking. In: 8th Annual
Conference of the International Speech Communication Association, Interspeech
2007., vol. 3, pp. 1921–1924 (2007)

21. Thomas, S., Verma, A.: Language identiﬁcation of person names using cf-iof based
weighing function. In: 8th Annual Conferenceof the International Speech Commu-
nication Association, Interspeech 2007, vol. 1, pp. 361–364 (2007)

22. Suo, H., Li, M., Liu, T., Lu, P., Yan, Y.: The design of backend classiﬁers in
pprlm system for language identiﬁcation. In: Proceedings of Third International
Conference on Natural Computation, ICNC 2007, vol. 1, pp. 678–682 (2007)
23. Moscola, J., Cho, Y., Lockwood, J.: Hardware-accelerated parser for extraction of
metadata in semantic network content. In: IEEE Aerospace Conference Proceed-
ings (2007)

24. Yang, X., Siu, M.: N-best tokenization in a gmm-svm language identiﬁcation sys-
tem. In: ICASSP, Proceedings of IEEE International Conference on Acoustics,
Speech and Signal Processing, vol. 4, pp. IV1005–IV1008 (2007)

25. Rouas, J.L.: Automatic prosodic variations modeling for language and dialect dis-
crimination. IEEE Transactions on Audio, Speech and Language Processing 15(6),
1904–1911 (2007)

26. Hanif, F., Latif, F., Sikandar Hayat Khiyal, M.: Unicode aided language identi-
ﬁcation across multiple scripts and heterogeneous data. Information Technology
Journal 6(4), 534–540 (2007)

27. Li, H., Ma, B., Lee, C.H.: A vector space modeling approach to spoken lan-
guage identiﬁcation. IEEE Transactions on Audio, Speech and Language Process-
ing 15(1), 271–284 (2007)

28. Cavnar, W.B., Trenkle, J.M.: N-gram-based text categorization. In: Proceedings
of the 3rd Annual Symposium on Document Analysis and Information Retrieval
1994, Las Vegas, Nevada, USA, pp. 161–175 (1994)

29. Choong, C., Mikami, Y., Marasinghe, C., Nandasara, S.: Optimizing n-gram order
of an n-gram based language identiﬁcation algorithm for 68 written languages.
International Journal on Advances in ICT for Emerging Regions 2(2), 21–28 (2009)

Image Edge Detection Using Variation-Adaptive
Ant Colony Optimization

Jing Tian1, Weiyu Yu2, Li Chen3, and Lihong Ma4

1 School of Computer Science and Technology, Wuhan University of Science and
Technology, P.R. China, 430081
eejtian@gmail.com
2 School of Electronic and Information Engineering, South China University of
Technology, Guangzhou, P.R. China, 510641
yuweiyu@scut.edu.cn
3 School of Computer Science and Technology, Wuhan University of Science and
Technology, P.R. China, 430081
chenli@ieee.org
4 Guangdong Key Lab of Wireless Network and Terminal, School of Electronic and
Information Engineering, South China University of Technology,
Guangzhou, P.R. China, 510641
eelhma@scut.edu.cn

Abstract. Ant colony optimization (ACO) is an optimization algorithm
inspired by the natural collective behavior of ant species. The ACO tech-
nique is exploited in this paper to develop a novel image edge detection
approach. The proposed approach is able to establish a pheromone ma-
trix that represents the edge presented at each pixel position of the image,
according to the movements of a number of ants which are dispatched to
move on the image. Furthermore, the movements of ants are driven by
the local variation of the image’s intensity values. Extensive experimen-
tal results are provided to demonstrate the superior performance of the
proposed approach.

1 Introduction

Ant colony optimization (ACO) is a nature-inspired optimization algorithm [8]
motivated by the natural collective behavior of real-world ant colonies. The
major collective behavior is the foraging behavior that guides ants on short
paths to their food sources, since ants can deposit pheromone on the ground in
order to mark some favorable path that should be followed by other members
of the colony. Inspired by this, the ﬁrst ACO algorithm, called the ant system,
was proposed by Dorigo et al. [7]. Since then, a number of ACO algorithms have
been developed [3], such as the Max-Min ant system [16] and the ant colony
system [5]. The ACO technique has been widely applied to tackle various real-
world applications [2, 4, 6, 19].

Image edge extraction aims to extract the edge presented in the image, which
is crucial to understand the image’s content [9]. Conventional image edge detec-
tion algorithms usually perform a linear ﬁltering operation (or with a smoothing

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 27–40, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

28

J. Tian et al.

pre-processing operation to remove noise from the image) on the image [9], such
as Sobel and Canny operators. These operators yield low computational load and
are suitable for real-time applications. However, these operators usually result
in artifacts (e.g., broken edges) in the resulted edge image [9]. To overcome the
above drawback, inspired by natural behavior of ants, various ant-based image
edge detection methods have been developed [11, 13, 20]. Zhuang [20] proposed
to utilize the perceptual graph to represent the relationship among neighboring
image pixels, then use the ant colony system to build up the perceptual graph.
Nezamabadi-Pour et al. [13] proposed to use the ant system to detect edges
from images by formulating the image as a directed graph. Lu and Chen [11]
proposed to use the ACO technique as a post-processing to compensate bro-
ken edges, which are usually incurred in the conventional image edge detection
algorithms.

The ACO technique is exploited in this paper to develop a new image edge de-
tection approach. The contribution of this paper is highlighted as follows. The
proposed approach aims to establish a pheromone matrix, whose entries represent
the edge at each pixel location of the image, by exploiting the ant colony system.
The ant colony evolves on the image via moving to adjacent pixels according to
the local features of the image. In the context of image edge extraction, the local
feature used in the propose approach is the local variation of the image’s intensity
values (the more contrasted the most favorable a region is).

It is important to note that there are fundamental diﬀerences between our
proposed approach and the conventional ones [1, 11, 13, 20]. First, our proposed
approach exploits the pheromone that is established by ant colony to extract
the edge from images; while Zhuang’s algorithm [20] exploits a perceptual graph
to represent the edge and further applies the ACO technique to construct this
graph. Second, our proposed approach exploits the ant colony system [5]; on
the contrary, Nezamabadi-Pour et al.’s method [13] applies the ant system [7].
It has been shown that the above fundamental diﬀerence (ant colony system
v.s. ant system) is crucial to the respective designed ACO-based algorithms [3].
Third, ACO is exploited to ‘directly’ extract the edge in our proposed method,
in contrast to that the ACO technique serves as a ‘post-processing’ in [11] to
enhance the edge that has already been extracted by conventional edge detection
algorithms.

The paper is organized as follows. An ACO-based image edge detection ap-
proach is proposed in Section 2. Extensive experimental results and discussions
are presented in Section 3. Finally, Section 4 concludes this paper.

2 Proposed ACO-Based Image Edge Detection Approach

The proposed approach aims to utilize a number of ants to evolve on a 2-D image
for constructing a pheromone matrix, each entry of which represents the edge
at each pixel location of the image. Furthermore, the movements of the ants are
steered by the local variation of the image’s intensity values. That is, the ants
prefer to move towards positions with larger variations (i.e., edge region).

Image Edge Detection Using Variation-Adaptive ACO

29

The proposed approach starts from the initialization process and runs for N
iterations to construct the pheromone matrix by iteratively performing both the
construction process, which constructs the pheromone matrix, and the update
process, which updates the pheromone matrix. Finally, the decision process is
performed to determine the edge by applying a binary thresholding on the con-
structed pheromone matrix. Each of the above four process is presented in detail
as follows.

2.1 Initialization Process
Totally K ants are randomly assigned on an image I with a size of M1 × M2,
each pixel of which can be viewed as a node. The initial value of each component
of the pheromone matrix τ (0) is set to be a constant τinit.

2.2 Construction Process

At the n-th construction-step, one ant is randomly selected from the above-
mentioned total K ants, and this ant will consecutively move on the image for
L movement-steps. This ant moves from the node (l, m) to its neighboring node
(i, j) according to a transition probability, which is deﬁned as

p(n)
(l,m),(i,j) =

(cid:4)

(cid:2)

(cid:3)α

τ (n−1)
(cid:2)

i,j

β
(ηi,j )
(cid:3)α

τ (n−1)

s,q

(s,q)∈Ω(l,m)

,

β

(ηs,q)

(1)

i,j

where τ (n−1)
is the pheromone value of the node (i, j), Ω(l,m) is the neighborhood
nodes of the node (l, m), ηi,j represents the heuristic information at the node
(i, j). The constants α and β represent the inﬂuence of the pheromone matrix
and the heuristic information matrix, respectively.

There are two crucial issues in the construction process. The ﬁrst issue is the
determination of the heuristic information ηi,j in (1). In this paper, it is proposed
to be determined by the local statistics at the pixel position (i, j) as

ηi,j =

1
Z

Vc(Ii,j ),

where Z is a normalization factor as
(cid:5)

(cid:5)

Z =

Vc(Ii,j ),

i=1:M1

j=1:M2

(2)

(3)

Ii,j is the intensity value of the pixel at the position (i, j) of the image I, the
function Vc(Ii,j ) is a function of a local group of pixels c, and its value depends
on the variation of image’s intensity values on the clique c (as shown in Figure
1). More speciﬁcally, for the pixel Ii,j under consideration, the function Vc(Ii,j )
is
Vc(Ii,j ) = f (|Ii−2,j−1 − Ii+2,j+1| + |Ii−2,j+1 − Ii+2,j−1| + |Ii−1,j−2 − Ii+1,j+2|

+|Ii−1,j−1 − Ii+1,j+1| + |Ii−1,j − Ii+1,j| + |Ii−1,j+1 − Ii−1,j−1|
+|Ii−1,j+2 − Ii−1,j−2| + |Ii,j−1 − Ii,j+1| ) .

(4)

30

J. Tian et al.

Ii-2,j-1

Ii-2,j+1

Ii-1,j-2

Ii-1,j-1

Ii-1,j

Ii-1,j+1

Ii-1,j+2

Ii,j-1

Ii,j+1

Ii+1,j-2

Ii+1,j-1

Ii+1,j

Ii+1,j+1

Ii+1,j+2

Ii+2,j-1

Ii+2,j+1

Fig. 1. A local conﬁguration at the pixel position Ii,j for computing the variation
Vc(Ii,j) deﬁned in (4). The pixel Ii,j is marked as gray square.

The key issue is to establish the function f (·) used in (4), which is deﬁned as
(cid:7)

(cid:8)

(cid:6)

f (x) =

sin
0

πx
2λ

0 ≤ x ≤ λ;
else,

(5)

where the parameter λ adjusts the function’s shape. The discussion of various
functions is provided in Section 4.2.1.

2.3 Update Process

The proposed approach performs two updates operations for updating the
pheromone matrix.

– The ﬁrst update is performed after the movement of each ant within each
construction-step. Each component of the pheromone matrix is updated ac-
cording to

⎧
⎪⎨

(1 − ρ) · τ (n−1)

i,j

τ (n−1)
i,j ←

⎪⎩

τ (n−1)

i,j

,

+ ρ · Δ(k)

i,j , if (i, j) is visited by
the current k-th ant;
otherwise.

(6)

where ρ is evaporation rate, Δ(k)
is, Δ(k)

i,j = ηi,j .

i,j is determined by the heuristic matrix; that

– The second update is carried out after the movement of all ants within each

construction-step according to

τ (n) = (1 − ψ) · τ (n−1) + ψ · τ (0),

(7)

where ψ is pheromone decay coeﬃcient.

Image Edge Detection Using Variation-Adaptive ACO

31

Fig. 2. A summary of the implementation of the proposed approach

2.4 Decision Process

In this step, a binary decision is made at each pixel location to determine whether
it is edge or not, by applying a threshold T on the ﬁnal pheromone matrix τ (N ).
This threshold can be either manually determined by users or automatically
determined by any binary thresholding algorithm (e.g., Otsu’s algorithm in [14]).
In this paper, the above-mentioned T is proposed to be adaptively computed
based on the method developed in [14] as follows.

The initial threshold T (0) is selected as the mean value of the pheromone
matrix. Next, the entries of the pheromone matrix is classiﬁed into two categories

32

J. Tian et al.

(a)

(b)

Fig. 3. Test images used in this paper: (a) Camera (128 × 128) and (b) House (128 ×
128)

according to the criterion that its value is lower than T (0) or larger than T (0).
Then the new threshold is computed as the average of two mean values of each
of above two categories. The above process is repeated until the threshold value
does not change any more (in terms of a user-deﬁned tolerance (cid:11)).

2.5 The Summary of the Proposed Approach

A summary of the implementation of the proposed image edge extraction ap-
proach is presented in Figure 2.

3 Experimental Results

3.1 Experimental Setup and Implementation

√

Experiments are conducted to evaluate the performance of the proposed ap-
proach using two test images, Camera and House, which are shown in Figure
3. Furthermore, various parameters of the proposed approach are set as follows.
M1 × M2(cid:6), where the function (cid:4)x(cid:6)
The total number of ants K is set to be (cid:4)
represents the highest integer value that is smaller than or equals to x. The ini-
tial value of each component of the pheromone matrix τinit is set to be 0.0001.
The weighting factors of the pheromone and the heuristic information in (1)
are set to be α = 10 and β = 0.01, respectively. The permissable ant’s move-
ment range in (1) is selected to be 8-connectivity neighborhood. The adjusting
factor of the function in (5) is λ = 1. The evaporation rate in (6) ρ is 0.1. To-
tal number of ant’s movement-steps within each construction-step L is 40. The
pheromone decay coeﬃcient in (7) ψ = 0.05. The user-deﬁned tolerance value
used in the decision process of the proposed method (cid:11) = 0.1. Total number of
construction-steps N is experimentally selected to be 4.

Image Edge Detection Using Variation-Adaptive ACO

33

(a)

(b)

(c)

(d)

(e)

(f)

Fig. 4. Functions used in establishing the heuristic information matrix (f (·) in (4)): (a)
the original Camera image; (b) Nezamabadi-Pour et al.’s method [13]; (c)-(f) proposed
algorithm with the incorporation of the functions deﬁned in (5), (8)-(10), respectively.

3.2 Experimental Results and Discussions

Experimental results are provided to compare the proposed approach with the
state-of-the-art method developed in the literature, e.g., Nezamabadi-Pour et
al.’s method [13]. To provide a fair comparison, the morphological thinning op-
eration of [13] is neglected, since it is performed as a post-processing to further
reﬁne the edge that is extracted by the ACO technique [13]. As seen from Figures
4 and 5, the proposed provides superior performance to that of Nezamabadi-Pour
et al.’s method [13], in terms of visual image quality. Furthermore, the deter-
mination of several parameters are critical to the performance of the proposed
approach; this issue will be discussed in detail as follows.

Functions Used in Establishing the Heuristic Information Matrix (f (·)
in (4)). To determine the function f (·) in (4), the following three functions could
be incorporated into the proposed approach, besides the function (5). All these
functions are mathematically expressed as follows and illustrated in Figure 6,
respectively.

34

J. Tian et al.

(a)

(b)

(c)

(d)

(e)

(f)

Fig. 5. Functions used in establishing the heuristic information matrix (f (·) in (4)): (a)
the original House image; (b) Nezamabadi-Pour et al.’s method [13]; (c)-(f) proposed
algorithm with the incorporation of the functions deﬁned in (5), (8)-(10), respectively

(a)

(b)

(c)

(d)

Fig. 6. Various functions (λ = 10) used for establishing the heuristic information ma-
trix: (a) the function deﬁned in (5); (b) the function deﬁned in (8); (c) the function
deﬁned in (9); and (d) the function deﬁned in (10)

Image Edge Detection Using Variation-Adaptive ACO

35

(a)

(b)

(c)

(d)

(e)

(f)

Fig. 7. Weighting factors of the pheromone (α in (1)) and the heuristic information (β
in (1)): (a) the original image Camera; (b) the proposed algorithm (α = 10, β = 0.01);
(c) the proposed algorithm (α = 0.01, β = 10); (d) the original image House; (e) the
proposed algorithm (α = 10, β = 0.01); and (f) the proposed algorithm (α = 0.01, β =
10).

f (x) = λx,
f (x) = λx2,

(cid:6)

f (x) =

for x ≥ 0,
for x ≥ 0,

πx sin( πx
λ )
λ

0

0 ≤ x ≤ λ;
else.

(8)
(9)

(10)

The parameter λ in each of above functions (8)-(10) adjusts the functions’ re-
spective shapes.

To present how the determination of the heuristic information matrix (i.e.,
(2)) is crucial to the proposed method, various functions deﬁned in (5), (8)-
(10) are individually incorporated into (4) of the proposed approach, and their
resulted performances are presented. Figures 4 and 5 present the results of test
images Camera and House, respectively.

Weighting Factors of the Pheromone (α in (1)) and the Heuristic
Information (β in (1)). To demonstrate how the weighting factors of the
pheromone (i.e., α in (1)) and the heuristic information (i.e., β in (1)) aﬀect the

36

J. Tian et al.

(a)

(b)

(c)

(d)

(e)

(f)

Fig. 8. Permissable range of ant’s movement (Ω(l,m) in (1)): (a) the original image
Camera; (b)-(c) the proposed algorithm using 8-connectivity neighborhood and 4-
connectivity neighborhood, respectively; (d) the original image House; (e)-(f) the pro-
posed algorithm using 8-connectivity neighborhood and 4-connectivity neighborhood,
respectively.

performance of the proposed algorithm, two experiments are conducted using
two parameter setups: i) α = 10, β = 0.01 and ii) α = 0.01, β = 10. Their
respective results are presented in Figure 7. As seen from the Figure 7, a large α
value and a small β value will let ants tend to discover edges that have already
been discovered by other ants; on the contrary, a small α value and a large β
value will let ants tend to discover edges using stochastic movements.

Permissable Range of Ant’s Movement (Ω(l,m) in (1)). The permissable
range of the ant’s movement (i.e., Ω(l,m) in (1)) at the position (l, m) could be
either the 4-connectivity neighborhood or the 8-connectivity neighborhood. Both
of these two cases are demonstrated in Figure 9 and their respective results are
shown in Figure 8. As seen from Figure 9, a large permissable movement range
will let ants to move to a far position; consequently, much edge will be discovered
by ants. On the other hand, a small permissable movement range will let ants to
prefer staying in their current positions; consequently, less edge will be discovered
by ants.

Image Edge Detection Using Variation-Adaptive ACO

37

Ii,j

(a)

Ii,j

(b)

Fig. 9. Various permissable range of the ant’s movement (marked as gray regions) at
the position Ii,j: (a) 4-connectivity neighborhood; and (b) 8-connectivity neighborhood

(a)

(b)

(c)

(d)

(e)

(f)

Fig. 10. Inﬂuence of evaporation factor (ρ in (6)): (a) the original image Camera;
(b) the proposed algorithm (ρ = 0.1); (c) the proposed algorithm (ρ = 0.99); (d) the
original image House; (e) the proposed algorithm (ρ = 0.1); and (f) the proposed
algorithm (ρ = 0.99)

38

J. Tian et al.

Inﬂuence of Evaporation Factor (ρ in (6)). Evaporation factor plays a key
role to determine the performance of the proposed algorithm. To demonstrate
this point, experiments are conducted using diﬀerent evaporation factors and
their results are presented in Figure 10.

Computational Cost. Experiments are conducted to compare the computa-
tional cost of the proposed algorithm and that of Nezamabadi-Pour et al.’s algo-
rithm [13]. Both of the above two algorithms are implemented using the M atlab
programming language and run on a PC with a Intel CoreTM DUO E6400 2.13
GHz CPU and a 1 GB RAM. Furthermore, both of them are implemented for
ten times, then their respective average running times are recorded.

The running times of the proposed approach are 64.97 seconds and 63.73 sec-
onds for the test image Camera and House, respectively. On the other hand, the
running time of Nezamabadi-Pour et al.’s algorithm [13] are 53.02 seconds and
53.18 seconds for the above two test images, respectively. Therefore, the proposed
algorithm yields slight extra computational load, 22.54% and 19.84% for test im-
ages Camera and House, respectively, compared with that of Nezamabadi-Pour
et al.’s algorithm [13]. However, this extra computational cost is tolerable, since
the visual quality of our result is much better than that of Nezamabadi-Pour et
al.’s algorithm [13]. On the other hand, since the ACO algorithm is inherently
suitable to be parallelized, various parallel ACO algorithms [15, 10] can be ex-
ploited to further shorten the running time of the proposed algorithm for future
research work.

4 Conclusions

In this paper, an ACO-based image edge detection approach has been developed
to exploit the pheromone that is established by the ACO technique to deter-
mine the edge presented in the image. Fairly extensive simulations have been
conducted to demonstrate the performance of the proposed algorithm using dif-
ferent parameters.

There are few issues of the proposed approach need further investigation.
First, images are usually corrupted with noises in image acquisition or image
communication. The ACO technique has been reported to be fairly robust to
handle the edge detection in noisy image cases [1]. Second, the proposed approach
exploits the conventional ACO algorithm [3] that updates the pheromone matrix
using the initial pheromone value (see (7)). It would be important to investigate
whether such update scheme is eﬃcient. Third, since the edge is very critical to
determine image’s quality, it would be interesting to see how the edge detected
by the proposed approach could beneﬁt other image processing applications,
such as image denoising [18, 17] and image saliency detection [12].

Acknowledgement. This work was supported by National Natural Science
Foundation of China (60972133); Key Project of Chinese Ministry of

Image Edge Detection Using Variation-Adaptive ACO

39

Education (210139); SRF for ROCS, SEM; GDSF Team Project (Grant No.
9351064101000003); the Fundamental Research Funds for the Central Universi-
ties (x2dxD2105260), SCUT; Fund of Provincial Key Lab. for Computer Infor-
mation Processing Tech. (KJS0922).

References

1. Aydın, D.: An eﬃcient ant-based edge detector. In: Nguyen, N.T., Kowalczyk, R.
(eds.) Transactions on Computational Collective Intelligence I. LNCS, vol. 6220,
pp. 39–55. Springer, Heidelberg (2010)

2. Cordon, O., Herrera, F., Stutzle, T.: Special Issue on Ant Colony Optimization:
Models and Applications. Mathware and Soft Computing 9 (December 2002)
3. Dorigo, M., Birattari, M., Stutzle, T.: Ant colony optimization. IEEE Computa-

tional Intelligence Magazine 1, 28–39 (2006)

4. Dorigo, M., Caro, G.D., Stutzle, T.: Special Issue on Ant Algorithms. Future Gen-

eration Computer Systems 16 (June 2000)

5. Dorigo, M., Gambardella, L.M.: Ant colony system: A cooperative learning ap-
proach to the traveling salesman problem. IEEE Trans. on Evolutionary Compu-
tation 1, 53–66 (1997)

6. Dorigo, M., Gambardella, L.M., Middendorf, M., Stutzle, T.: Special Issue on Ant
Colony Optimization. IEEE Transactions on Evolutionary Computation 6 (July
2002)

7. Dorigo, M., Maniezzo, V., Colorni, A.: Ant system: Optimization by a colony of
cooperating agents. IEEE Trans. on Systems, Man and Cybernetics, Part B 26,
29–41 (1996)

8. Dorigo, M., Thomas, S.: Ant Colony Optimization. MIT Press, Cambridge (2004)
9. Gonzalez, R.C., Woods, R.E.: Digital image processing. Prentice Hall, Harlow

(2007)

10. Janson, S., Merkle, D., Middendorf, M.: Parallel ant colony algorithms. In: Alba,
E. (ed.) Parallel Metaheuristics: A New Class of Algorithms. Wiley-Interscience,
Hoboken (2005)

11. Lu, D.S., Chen, C.C.: Edge detection improvement by ant colony optimization.

Pattern Recognition Letters 29, 416–425 (2008)

12. Ma, L., Tian, J., Yu, W.: Visual saliency detection in image using ant colony
optimisation and local phase coherence. Electronics Letters 46, 1066–1068
(2010)

13. Nezamabadi-Pour, H., Saryazdi, S., Rashedi, E.: Edge detection using ant algo-

rithms. Soft Computing 10, 623–628 (2006)

14. Otsu, N.: A threshold selection method from gray level histograms. IEEE Trans.

Syst., Man, Cybern. 9, 62–66 (1979)

15. Randall, M., Lewis, A.: A parallel implementation of ant colony optimization.

Journal of Parallel and Distributed Computing 62, 1421–1432 (2002)

16. Stutzle, T., Holger, H.: Max-Min ant system. Future Generation Computer Sys-

tems 16, 889–914 (2000)

17. Tian, J., Chen, L.: Image despeckling using a non-parametric statistical model of

wavelet coeﬃcients. Electronics Letters 6 (2011)

40

J. Tian et al.

18. Tian, J., Yu, W., Ma, L.: Antshrink: Ant colony optimization for image shrinkage.

Pattern Recognition Letters (2010)

19. Tian, J., Yu, W., Xie, S.: An ant colony optimization algorithm for image edge de-
tection. In: Proc. IEEE Congress on Evolutionary Computation, Hongkong, China,
pp. 751–756 (June 2008)

20. Zhuang, X.: Edge feature extraction in digital images with the ant colony system.
In: Proc. IEEE Int. Conf. on Computational Intelligence for Measurement Systems
and Applications, pp. 133–136 (July 2004)

An Iterative Process for Component-Based
Software Development Centered on Agents

Yves Wautelet1, Sodany Kiv2, and Manuel Kolp2

1 Hogeschool-Universiteit Brussel, Belgium
yves.wautelet@hubrussel.be
2 Universit´e catholique de Louvain, Belgium
{sodany.kiv,manuel.kolp}@uclouvain.be

Abstract. The use of the component-based approach to develop large-
scale information systems has become increasingly prominent over the
past decade. However, there is a lack of established frameworks that
cover the life cycle of component-based system development. This paper
proposes a formalization of the process for component-based software
development through the use of the agent paradigm. To this end, com-
ponents are considered as low-level functional providers integrated into
the software project through an agent architecture subject to monitoring
- i.e. checking constraints - in order to determine the proper advancement
of the software project. The use of agents typically allows a logical inde-
pendence: the business logic is built separated from components making
their integration process more ﬂexible. The component selection is per-
formed on two levels: components are selected on the basis of actors’ in-
tentions at the analysis level, and of their functional performances at the
runtime level. The process is thus highly iterative and formal constraints
are provided to monitor the iterative progression on a management point
of view.

1 Introduction

Component-Based System Development (CBSD) has driven a lot of research
over the last ten years. CBSD is based on the idea of building new systems by
selecting appropriate components and assembling them with well-deﬁned soft-
ware architecture. It has become a strategic ﬁeld for building large-scale and
complex systems due to its potential beneﬁts that are mainly its reduced costs
and shorter development time, while maintaining quality. However, despite the
plethora of software project management frameworks that exist for the tradi-
tional (developed-from-scratch) system development, there is a lack of estab-
lished frameworks that cover the full life cycle of CBSD.

In this paper we deﬁne on a process for developing component-based software
systems using agent-based architectural concepts. The originality of the approach
resides in the advantages that:

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 41–65, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

42

Y. Wautelet, S. Kiv, and M. Kolp

– component selection is performed both at analysis and at runtime levels;
– components are considered as low-level functional providers rather than high-
level ones such as in classical service oriented architecture, this allows us
to design a context speciﬁc multi-agent system (MAS) encapsulating the
business logic. This lowers the need for component customization and con-
sequently eases their integration.

The proposed process is rooted in requirements-driven iterative development
with life cycle milestone constraints adapted to monitor the MAS evolution
process. To that extend, we deﬁne the concepts required to properly model a
MAS exploiting collections of components through an API or any other techni-
cal means such as XML or SOAP messages typical in component-based systems.
In our process, MAS is built up on analysis using i* ([31]); then, components
are selected on the basis of high level functional aspects (represented as agent
intentions) using a goal-based analysis based on the NFR (Non Functional Re-
quirements) framework [9]. Components are then competing against each other
into the MAS architecture to achieve low level functional requests required by
the domain speciﬁc agents. Runtime feedbacks feed decisions concerning involve-
ments of components in the next iterations.

The paper brings the following contributions:

– it formalizes an iterative software process to build component based software;
– it proposes a formal model to build up a MAS exploiting software compo-
nents through agent capabilities. This goes beyond a classical deﬁnition of
agent concepts by incorporating access and dialogue (thus basic delegation)
to (third party) components. The MAS represents an abstraction layer be-
tween the modelled organization and the available components so that this
formal model constitutes a framework for integrating software components;
– it deﬁnes iteration milestone constraints to monitor the progression of the
software project. Therefore we refer to the I-Tropos [28] milestones and deﬁne
speciﬁc constraints the overall project has to respect to achieve its iterations;
– ﬁnally, as a whole, it attempts to develop a framework where MAS contextual
issues, mainly in terms of component integration, are together considered
with project management questions. This reinforces the interest of adopting
iterative templates such as those proposed in the Uniﬁed Process [15,19] or
Agile methodologies in MAS and component-based software development.

Moreover, the proposed process is requirements-driven in the sense that even if
the purpose is the reuse of generic software components, the domain model is
logically independent. It is speciﬁed without any assumption on the available
solutions and the deduced business logic is build up ﬂexibly into the MAS, not
by adapting the components themselves. By relegating the functional execution
to a lower level, the process has the ability to round-trip between requirements
analysis and MAS execution. This approach allows:

– to integrate both functional and non-functional aspects into the components

evaluation and selection process;

An Iterative Process for CBSD Centered on Agents

43

– to make the components evaluation and selection process continuous during

the whole project life cycle;

– to compare components performance on a low-level functional basis in order
to select the best performing solution based on cost and QoS (quality of
services) ontologies (see Section 3);

– to continually seek for an optimal solution;
– to ease the components integration process by building the business logic

outside the components so that it requires less customization;

– to ease the transaction compared to a service approach. Indeed, only a me-
diator agent is needed to manage transactions and no complex dedicated set
of agents should be involved. This also tends to speed up the application
execution process;

– to ease the system transition process when facing changing requirements

since only the business logic into the MAS has to be adapted.

The paper is structured as follows. Section 2 introduces the software process and
the induced architecture. Section 3 deﬁnes the MAS conceptual model, the con-
straints for monitoring components integration using an iterative template and
the MAS to-be equilibrium. Section 4 introduces the monitoring of components-
based development through milestones from an agent iterative process. Section
5 illustrates the concepts on the basis of a real-world case study. Section 7
overviews related work and ﬁnally Section 8 concludes the paper.

2 A Process for Component-Based Software Development

This section ﬁrstly deﬁnes the two-level software process, and then further dis-
cusses its constituting elements granularity and the software architecture.

2.1 Process Deﬁnition

As said, Component-Based Software Development (CBSD) has become a crucial
construction philosophy for building open large-scale and complex software archi-
tecture. It mainly consists of developing new software from pre-built components
with the potential advantages of adequately managing complexity, reducing de-
velopment time, increasing productivity and improving quality.

CBSD includes typically four disciplines [6,4]: Requirement Engineering (RE ),
Components Evaluation and Selection (CES ), Components Mismatches Han-
dling (CMH ), and Components Integration and System Evolution (split into CI
and SE into the rest of this section).

We propose below an engineering process for CBSD taking into account the
parts above speciﬁed above (see abbreviations within Figure 2). The Software
Process Engineering Meta-Model (SPEM, [13]) is an OMG speciﬁcation of an
UML meta-model (and UML proﬁle) used to represent a family of software de-
velopment processes and their components. Figure 1 represents the icons related
to a limited number of the SPEM concepts. Indeed, we focus here on the illustra-
tion of the most important process steps rather than an exhaustive illustration.

44

Y. Wautelet, S. Kiv, and M. Kolp

WorkDefinition

Document

AgentModel

Fig. 1. Some Relevant SPEM Icons

In Figure 2, we instantiate some of the elements of the generic SPEM to de-
ﬁne a custom two-level component-selection process. This instance is proposed
in the form of a workﬂow, the WorkDeﬁnitions represent the most important
process steps and, as illustrated in the bottom of the ﬁgure, the process is highly
iterative so that WorkDeﬁnitions are repeated during each of the project iter-
ations with variable eﬀort on each of them. At the end of each iteration, the
Current Milestone Constraints are evaluated to determine the whole software
project achievement. Typically there are four phases in the process: Setting,
Blueprinting, Building and Setuping, their objective and milestones constraints
are extensively depicted in section 4. The process is structured as follows:

– in the RE discipline:

– the Organizational Analysis WorkDeﬁnition regroups the activities to build
up an organizational model using the i* [31] framework in order to formalize
the goals and tasks pursued by the actors involved in the software project;
– then, the Goal Formalization WorkDeﬁnition regroups the activities to
perform an NFR goal analysis [9] in order to set up the expected functional
and non-functional requirements of the software system;

– in the CES discipline:

– the Components Selection WorkDeﬁnition regroups the activities to ﬁrstly
select the components to integrate based on a comparison between the func-
tional and non-functional attributes of the available components with respect
to the identiﬁed requirements. Components are thus evaluated at analysis
level, i.e. their high-level functional and non-functional aspects are com-
pared to the actors’ intentions for eventual integration into the system under
development;

– in the System Design discipline:

– the Multi-Agent System Architectural Design WorkDeﬁnition regroups the
activities to build up the business logic on the basis of the organizational
models and encapsulate it into a MAS acting as a wrapper over integrated
COTS-components;
– in the CI discipline:

– the Selected Components Integration WorkDeﬁnition regroups the activi-
ties to properly integrate the selected components within the MAS architec-
ture;

– in the Runtime Evaluation discipline:

– the Mismatches Identiﬁcation WorkDeﬁnition regroups the activities aimed
to monitor the competition between integrated components (and arbitrated
by a mediator agent) to execute low-level functionalities requested by the
MAS agents.

An Iterative Process for CBSD Centered on Agents

45

RE

Strategic Dependency Model

Strategic Rationale Model

System
Design

Organizational Analysis

Multi-Agent System
Architectural Design

Goals Formalization

NFR Goal Graph

New Components
Available?

[Yes]

Components
Selection

Available
Components List

CES

CMH

SE

[Yes]

[No]

Components
Customization

[No]

[No]

Current Milestone
Constraint Met?

[Yes]

[Next Iteration]

Runtime
Evaluation

CI

Setuping
(Final)
Phase?

Mismatches
Identification

Selected Components
Integration

SE

Fig. 2. The Two Level Selection Process

– in the SE discipline, is concerned with the evaluation of the project advance-
ment with respect to runtime feedbacks. Indeed, the latter allows analysts to
determine if milestones constraints are met and to take further component
integration decisions. Typically, the possible actions taken by analysts for
the next iteration include:
– removal of unnecessary (or underperforming) components;
– customization of existing components to include new capabilities (see sec-
tion 3 for a formal deﬁnition) or higher their level of performance (CMH
discipline);
– development of capabilities into a new ad-hoc (i.e. custom) component
(CMH discipline);
– integration of newly available components;

46

Y. Wautelet, S. Kiv, and M. Kolp

– Finally, in the CMH discipline:

– the Components Customization WorkDeﬁnition regroups the activities
aimed to customize speciﬁc existing components to include new capabili-
ties or higher their level of performance or the development of capabilities
into a new ad-hoc component.

2.2 Elements Granularity and Software Architecture

Service-oriented development can be distinguished from CBSD based on a series
of characteristics such as those analysed in [5] notably in terms of granularity.
Typically, [5] points out that operations on services are frequently implemented
to encompass more functionality and operate on larger data sets when compared
with component-interface design. The tricky question of service granularity has
notably been studied in [14] which furnishes a service decomposition based on
data, business value and functionality. Without going into that level of details,
a service is traditionally considered as a single, discrete business process while
components deal with ﬁner grained functionalities. Agent-oriented development
processes, notably thoses using the i* modeling framework propose diﬀerent ap-
proaches for deﬁning what a service is. Recent works such as [10], [23], [30] evoke
services as a complete business processes and consider goals, tasks, resources (i.e.
actors intentions) as a functional decomposition of the service while previously
works like [12], [11] refer these actors’ intentions as being services. We consider
here the position to evoke a service as an entire business process which is also the
approach found in logistics or accounting. This paper is nevertheless targeted to
components providing functionality at lower level typically the one where agent
capabilities reside. Figure 3 depicts in a generic way the supporting software
architecture. It distinguishes three levels of granularity referred to as layers:

– the service layer i.e., the business process one, is the most coarse grained
one. We do not explicitly deal with it in our methodology. This is the layer
of the Graphical User Interface (GUI ) where the services the application
oﬀers are composed by user’s requests;

– the actor intentions or goals and tasks layer, representing its goals
or tasks, is the highest we deal with (in the form of a realization path, see
Section 3). This is the level of the Multi-Agent System (MAS ) where the
sub-processes (tasks or goals) are resolved following a deﬁned business logic
(encapsulated into the MAS) in the form of sequences of capabilities (called
resolution paths). The communication with the lower layer is handled by a
mediator agent;

– the capability layer where software components are, in our architecture,
concretely interfaced to the MAS and represents thus the most detailed layer.
This is the Components level where components advertise their ability to
fulﬁl a capability request directly to the mediator agent and, when this agent
orders it, components execute the capability.

An Iterative Process for CBSD Centered on Agents

47

i*
Modeling

NFR
Analysis

Runtime
feedback

GUI
GUI

MAS

3
1 2 3
2
1
t
t
t
n
n
n
e
e
e
n
n
n
o
o
o
p
p
p
m
m
m
o
o
o
C C C
C
C
C

…

n
n
t
n
e
n
o
p
m
o
C
C

Coarse
grained

Service
i
S
Layer

User’s
Requests
t
R

Goal & Task
Goal & Task
Layer

Actors
Intentions
ti
I t

Capabilities
Capabilities
Layer

Agent
Behavior
Behavior

Fine
grained

Fig. 3. A framework architecture

3 MAS Conceptual Foundations

We deﬁne in this section a conceptual model for the second layer of actor goals
and tasks, the highest granularity level we deal with as introduced just above.
The model is used to build the MAS while the accompagnied transaction proce-
dures described just after ensure the communication with the capability layer.
Figure 4 depicts the relevant MAS concepts and their dependencies using a
UML class diagram. The model is structured as follows: the agent pursues a
series of intentions which can be tasks or goals as deﬁned by i* and are then
resolved through a series of capabilities by software components under the re-
sponsibility of agents in the form of a realization path. A UML sequence diagram
can be used to document those realization paths as depicted in Figure 5. The
MAS architecture ensures that capabilities’ realization are delegated by agents
to software components through the use of capability requests. Components are
source code packages able to achieve a capability that is part of its oﬀer.

Component. A tuple (cid:2){(cpi, qc
cpi+m)}, Compc(cid:3) is called an
component c, where cpi is a capability. The component advertises to the me-
diator agent its ability to resolve a capability at deﬁned QoS level and cost qa
cpi .
Compc is assumed to contain all additional properties of the component irrele-
vant for the present discussion, yet necessary when integrating the component.

cpi), . . . , (cpi+m, qc

48

Y. Wautelet, S. Kiv, and M. Kolp

Task

Goal

Intention

0..n
0..n

0..n
0..n

+resolves

pursues

Agent

1
1

+is required by

1
1

realizes

Realization_path

1..n
1..n

Implements

+is resolved by

1..n
1..n
Capability
preconditions
postconditions

+requires

0..n
0..n

0..n
0..n

+fulfills

1..n
1..n

Sequence_diagram

0..n
0..n

+is fulfiled by

Component

Capability_request

expected_qualities
deadline
minimal_level_of_reputation
maximal_monetary_cost

+answears

0..n
0..n

+is answeared by

0..n
0..n

Specialist_component

quality_level
cost

Fig. 4. The MAS Meta-Model

Format and content of Compc will depend on the component technologies
being used. A Capability is part of a Goal or Task realization (those are gener-
alized as Intentions in the UML class diagram). Non-available capabilities must
be speciﬁcally developed inside the scope of a component.

cpi, ctc
cpi

cpi at cost ctc

Specialist Component. (cid:2)c, cpi, qc
quality level qc
ponent cSC
∀cSC
the specialist component cSC
speciﬁc cost ontology.

(cid:3) associating a capability cpi to a
cpi advertised by component c is a specialist com-
. The component must be capable of performing the capability:
cpi speciﬁes the cost at which
can realize the capability. Its deﬁnition follows a

i
i = (cid:2)c, cpi, qc

cpi) ∈ c. ctc

(cid:3), (cpi, qc

cpi , ctc
cpi

cpi, ctc

i

Any component c that can accomplish m > 1 capabilities can also be seen as
, . . . , cSC

a set of specialist components: {cSC

i

i+m}.

Capability. A capability cpi is (cid:2)cp
describes the ca-
pability preconditions, τi is a speciﬁcation (in some language) of how the com-
ponent is to execute the capability and cp
describes the conditions true after
the capability is executed. Capabilities belong to the set CP.

(cid:3), where cp

, τi, cp

post
i

pre
i

post
i

pre
i

The capability is realized by a component under the responsibility of an agent.
Agents are issued of the domain model on the exception of a special agent called
the mediator agent. The latter is in charge of managing the transaction between
the domain speciﬁc agents and the integrated components.

An Iterative Process for CBSD Centered on Agents

49

Mediator. A service mediator agent aSM
that can execute the transaction procedure: tA ∈ aSM
.
The transaction procedure tA is documented below.

c

c

in the multi-agent system is an agent

j , rpc

cpj , rpa

Realization Path. (cid:2)rpι
cpj , rpTransit j, rpState j(cid:3) is a realization path
rpj, where rpι
j provides the details of the functional speciﬁcation of the realized
cpj , rpa
intention, (rpc
cpj ) deﬁnes a sequence diagram where rpc
cpj represents the
series of capabilities required to realize the intention and rpa
cpj the agents re-
sponsible for their realization. The two functions label swimlanes and messages
with capability information: rpTransit j : rpc
(cid:6)−→ CP is a partial function
returning the capability for a given message in the sequence diagram, while
rpState j : rpa
}cpi∈CP maps each message to a
cpj
pre
i }cpi∈CP) and
condition from the set of all capability preconditions (i.e., {cp
postconditions (i.e., {cp
}cpi∈CP). The capability speciﬁed on a message must
have the precondition and postcondition corresponding to conditions given, re-
spectively, on its origin and its destination swimlane. Realization paths belong
to the set RP.

pre
i }cpi∈CP ∪ {cp

(cid:6)−→ {cp

post
i

post
i

cpj

Capabilities can thus be understood as a functional decomposition of a “higher
level” intention (a task or goal) with the realization path as a success scenario.
However in the context of this paper we are mostly focusing on the lowest level
functional decomposition.

By conceptualizing the realization path as suggested above, the service is thus
mapped onto a sequence diagram SeQ where each lifeline is a step in task/goal
realization and a message in SeQ corresponds to the execution of a capability
cpk by a component cSC
k,u, where u ranges over components that can execute cpk
according to the criteria set in the task/goal through an agent ak. Each path
from the starting agent (e.g., agent Agentk in Figure 5) to the ending agent
(agent Agentk+n in Figure 5) thus corresponds to a sequence of capabilities
ensuring the completion of the goal/task within the prescribed quality of service
(QoS).

A realization path could be (cid:2)cpk, cpk+1, ..., cpk+n(cid:3). The model thus assumes
that there are alternative ways for completing the task/goal. The topology of
the sequence diagram—i.e., the agent structure and the capabilities associated to
messages between the agents—is provided by the designer through the task/goal
deﬁnition, so that the sequence diagram is a graphical model of the diﬀerent ways
the task/goal can be performed as a sequence of capabilities delegated to com-
ponents with cost and QoS constraints.

Capability Request. ˆcpj is (cid:2)Aga, cpj, cp
request where:

QoS
j

, cpD

j , cpR

j , cpcost
j

(cid:3) is a capability

– Aga is the Agent requesting the capability realization by software compo-

nents i.e. the one responsible for the capability realization.

– cpj is the capability to provide.

50

Y. Wautelet, S. Kiv, and M. Kolp

Agentk

Agent

k+1

Agent

k+n

cp

k+3

Realization
Path

cp

k

cp

k+1

cp

k+2

cp k+n

Fig. 5. A series of capabilities as a sequence diagram

– cp

QoS
j

speciﬁes expected qualities and their required level. Its deﬁnition fol-
lows a QoS ontology. Whatever the speciﬁc QoS ontology, expected qual-
= (cid:2)(p1, d1, v1, u1), . . . ,
ities are likely to be speciﬁed as (at least) cp
(pr, dr, vr, ur)(cid:3), where:

QoS
j

• pk is the name of the QoS parameter (e.g., connection delay, standards

compliance, and so on).

• dk gives the type of the parameter (e.g., nominal, ordinal, interval, ratio).
• vk is the set of desired values of the parameter, or the constraint <, ≤

, =, ≥, > on the value of the parameter.

• uk is the unit of the property value.
is a deadline, speciﬁed as a natural.

– cpD
j
– cpR
j speciﬁes minimal levels of reputation over task quality parameters that
any component participating in the provision of the given capability must
satisfy.
– cpcost
j

is the maximal monetary cost the agent requesting the capability is

ready to pay to obtain the service.

Capability requests belong to the set REQ.

Transaction. When a capabiltiy request ˆcpi is submitted to the mediator agent
with cpi as capability to provide. Let W [] be the ordered vector containing a
weighting factor for all of the aspects of the QoS ontology for the particular busi-
QoS
ness logic, ∀cpj ∈ CP where cpj meets the functional speciﬁcation of cpi, cp
j
= (cid:2)(p1, d1, v1, u1),. . . , (pr, dr, vr, ur)(cid:3), with vk being the value of the quality pa-
rameter: cpbest is the capability with max(W [1] ∗ v1 + W [2] ∗ v2+, . . . + W [r] ∗ vr)
value. The mediator agent aSM
will delegate the functional execution of the
capability request to the component advertising cpbest.

c

An Iterative Process for CBSD Centered on Agents

51

4 Monitoring MAS Components with Iterations and

Phases

Iterative development for MAS has been studied by diﬀerent authors, see e.g.,
[28] for a state-of-the art about MAS iterative processes. This paper speciﬁcally
focuses on using an iterative project management perspective to monitor
MAS at runtime. Iterative reﬁnements are provided by agent delegation choices
but also by managerial decisions to develop missing (or existing under per-
forming) capabilities. In iterative engineering processes [24] such as the Uniﬁed
Process, each iteration belongs to one of the usually four or ﬁve phases com-
posing the process. We refer in this work to a UP-based agent-oriented process
called I-Tropos [28] which consists mainly of an iterative extension of the Tropos
methodology [7]. These phases are made of one to more iterations (as many as
required to at least meet the phase milestone) used here to depict constraints
for evaluating the MAS evolution at runtime; we overview each phase objective
below as well as, for each of them, constraints applied to capabilities at runtime.

Setting. The setting phase is concerned with the ﬁrst sketch of the MAS through
identifying the main agents and the capabilities they are responsible for. This
phase is mostly concerned with determining the objectives of the software project
so that there is a strong focus on analysis disciplines. MAS runtime consider-
ations are largely out of the scope of this phase so that no formal milestone
constraint is given for this phase.

Blueprinting. The blueprinting phase is concerned with a ﬁrst executable ver-
sion of the MAS with each of the capability requests addressable by at least one
of the specialist components over minimal QoS.

The condition for evaluating the MAS state at blueprinting phase milestone
≥

is: ∀ ˆcpj ∈ REQ where cpj is the capability to provide, ∃cSC
cp

| cpj ∈ cSC

i ∧ qc
cpi

(vk).

i

QoS
j

Building. The building phase is concerned with a ﬁrst executable version of
the MAS with each of the capability requests addressable by at least one of the
specialist components over minimal QoS and under maximal cost.

The condition for evaluating the MAS state at building phase milestone is:
≥

∀ ˆcpj ∈ REQ where cpj is the capability to provide, ∃cSC
cp

| cpj ∈ cSC

i ∧ qc
cpi

(vk) ∧ ctc

≤ cpj

cost.

i

QoS
j

cpi

Setuping. Even if the MAS is running “at equilibrium” (which means it uses the
best possible specialist component available for each of the capability requests)
new components can be available onto the market with better performance. This
last phase monitors the inclusion of such components and has no formal mile-
stone constraint since it virtually never ends.

52

Y. Wautelet, S. Kiv, and M. Kolp

5 Case Study: The Translogistic Project

This section introduces the application of our framework onto the development of
an e-collaboration platform for outbound logistics (OL). It presents successively
the case study domain in some brief details and part of the work realized during
the successive project phases. The process is iterative which means that eﬀort
is spent on each of the process’ WorkDeﬁnitions (see section 2 for a detailed
enumeration) at each of the iterations. The relative eﬀort is however variable
and more resources are spent on the WorkDeﬁnitions of the RE discipline at the
beginning of the project (e.g. during the setting phase) and more on software
implementation at the middle of the project (e.g. during the blueprinting and
building phases). Due to a lack of space and to be in line with this relative eﬀort
balance we will focus on the WorkDeﬁnitions of the RE, CES and System Design
disciplines when presenting the setting phase and on the MAS runtime feedbacks
when presenting the following ones.

5.1 Outbound Logistics

Outbound logistics (OL) is the process related to the movement and storage of
products from the end of the production line to the end user. In the context
of this case study we mostly focus on transportation. The actors of the supply
chain play diﬀerent roles in the OL ﬂow. The producer will be a logistic client
in its relationship with the raw material supplier, which will be considered as
the shipper. The carrier will receive transportation orders from the shipper and
will deliver goods to the client, while relying on the infrastructure holder and
manager. In its relationship with the intermediary wholesaler, the producer will
then play the role of the shipper and the wholesaler will be the client.

Supplier

Producer

Wholesaler

Final client

Shipper

Order

Client

Client

Client

Shipper

Shipper

Logistic
request

Transport

Carrier

Infrastructure manager

Scheduler

Coordination

Operational planner

Strategic planner

Strategic planner

Fig. 6. Material ﬂows in the outbound logistics chain

Figure 6 summarizes the material ﬂows between the actors of the OL chain.

The responsibilities corresponding to the diﬀerent roles are:

An Iterative Process for CBSD Centered on Agents

53

– the Shipper has received an order from a client, and does a logistic request

to a carrier for the delivery of that order.
– the Carrier is subdivided into two subroles:

• the strategic planner decides on the services that are oﬀered on the long
term, on the use of infrastructure, on the logistic resources to hold and
on the client’s acceptation conditions.

• the scheduler orders transports to be realized, according to the strategic
network and constraints, coordinates with the infrastructure manager
and assign logistic requests to those transports such that the delivery
requirements are met.

– the Infrastructure manager holds the logistic infrastructure and coordinates
with the carrier’s scheduler to oﬀer the network for the planned transports.

– the Customer books the transported merchandises.

The idea underlying the software development is to favour these actors’ collab-
oration. Indeed, collaborative decision will tend to avoid local equilibriums (at
actor level) and wastes in the global supply chain optimisation, giving quality
expectations to achieve the greatest value that the chain can deliver at lowest
cost (see [22,26]). The collaborative application package to be developed is thus
composed of a multitude of aspects including the development of applications
and databases to allow the eﬀective collaboration and the use of ﬂexible third-
party components providing well-identiﬁed services. This dual aspect is from
primary interest when managing the software project as shown in the rest of
this paper.

5.2 Setting

Organizational Analysis. Figure 7 documents an i* diagram issued of or-
ganizational modelling. This strategic dependency diagram (SDD ) depicts the
relevant actors and their respective goal, task and resource dependencies.

Those dependencies are further analysed in a strategic rationale diagram
(SRD ) not presented here due to lack of space. It provides a more detailed
level of modelling by looking inside actors. A strategic dependency diagram is
a graph involving actors who have strategic dependencies among each other. A
dependency describes an “agreement” (called dependum) between two actors:
the depender and the dependee. The depender is the depending actor, and the
dependee, the actor who is depended upon. The type of the dependency de-
scribes the nature of the agreement. Goal dependencies are used to represent
delegation of responsibility for fulﬁlling a goal; softgoal dependencies are similar
to goal dependencies, but their fulﬁllment cannot be deﬁned precisely (for in-
stance, the appreciation is subjective, or the fulﬁllment can occur only to a given
extent); task dependencies are used in situations where the dependee is required
to perform a given activity; and resource dependencies require the dependee to
provide a resource to the depender. As shown in Figure 7, actors are represented
as circles; dependums – goals, softgoals, tasks and resources – are respectively

54

Y. Wautelet, S. Kiv, and M. Kolp

Shipper

D

D

D

D

D

D

Goods to be
transported

D

Quality
transport

On time
transport

Goods to be
transported

Services to
be selected

D

D

D

D

D

Carrier

D

D

D

D

D

D

Service provider
to be located

Subscribe
services

Unsubscribe
services

D

Select most
adequate
transport

Transports to
be followed
up

Events to be
handled

D

Client

Delivery date
to be informed

D

DD

D

D

D

D

Access and
control data
easily and
securely

D

TMS

D
D

Infrastructure
Manager

Transport
Plans

Legend:

Actor

Resource

Goal

Soft goal

Task

D
Dependency link

Fig. 7. The i* Strategic Dependency Diagram

represented as ovals, clouds, hexagons and rectangles; and dependencies have
the form depender → dependum → dependee.

Each outbound logistic actor depicted above (as well as the ﬁnal client) and
the third-party component we want to integrate in the global system are all
represented as actors. These diagrams allow to get a ﬁrst representation of the
system to be at high abstraction level.

Goals Formalization. As in Tropos [7], we use the NFR framework [9] to con-
duct goal analysis and formalization. The NFR framework introduces soft (or
NFR) goal contributions to model suﬃcient/partial positive (respectively ++
and +) or negative (respectively −− and −) to analyse soft (NFR) goals (also
called quality or strategic goals) and operational goals in addition to classical
AND or OR decomposition links. The analysis allows one to select among alter-
native operationalized goals as software requirements and qualities are modeled
as softgoals, decomposed as more speciﬁc and more precise sub-goals contribut-
ing positively or negatively to each other and then allowing one to evaluate and
select operationalized softgoals.

The NFR goal graph of Figure 8 represents the non-functional aspects that
Transportation Management System (TMS ) components should fulﬁl or at least
contribute to. Non-functional requirements include Security, Flexibility and
Adaptability. After posing these highest level non-functional requirements as
softgoals to satisfy, we tend to reﬁne them into sub-goals through AND and

An Iterative Process for CBSD Centered on Agents

55

OR decompositions and the interdependencies among the goals are also studied
as shown in Figure 8. The NFR Security was reﬁned into Authorization and Data
encryption. The NFR Flexibility was decomposed into integrability of data base,
wrappability of product and extensibility of new modules.The NFR Flexibility has
a positive inﬂuence to the NFR Adaptability which has been decomposed into
vendor support, developed in a standard technology, source code openness, and
conﬁguration. The authority to read source code openness operationalize goal
can partly satisfy the source code openness goal which can be fully fulﬁlled by
the authority to modify code operationalize goal.

Certainly all of the components do not have the same usage cost; for example
TMS3 from elcomionero.com is an open source software component while TMS1
from Oracle and TMS2 from SAP are commercial ones. Cost based selection is
here considered at runtime with only a maximal cost constraint (as deﬁned in
section 4). A larger perspective on the overall process cost is given following a
given cost ontology in section 6; to match with the paper focus we will not enter
into more “cost ontological” reﬁnements.

Security

Flexibility

Adaptability

+

Authorization

Data encryption

Integrability of
data base

Wrappability of
product

Extensibility of
new modules

+ +

+ +

+

+

+

+ +

+ +

+

+ +

+

+

-

-

+

TMS1

TMS2

Vendor support

Developed in a
standard technology

Source code
openness

Configuration

+ +

+ +

+ +

+

+
--

-

+

+ +

+ +

Authority to read
source code

Authority to
modify code

+

--

+ +

+

--
--
+ +

Legend:

TMS3

+ +

+

-

- -

Other TMSs

NFR
goal

Operationalizing
goal

AND
decomposition

Make
contribution

Help
contribution

Hurt
contribution

Break
contribution

Fig. 8. Analysis of the TMS Components on the Basis of their High-Level Attributes
(Analysis Perspective)

Components Selection. The detailed process of looking for, evaluating and
selecting available component-based packages is outside the focus of this paper.
For illustration in this case study, we suppose that component based packages
are selected after short-listing the ones that are available and evaluating the pre-
selected ones through the NFR analysis presented above. More details about such
a selection process can be found in [7] for selecting organizational architectural
styles. The NFR analysis shown previously allowed us, on the basis of the analysis
high level considerations to distinguish a hierarchy between the available TMS

56

Y. Wautelet, S. Kiv, and M. Kolp

components, TMS1 is preferred followed by TMS2 and TMS3. Other TMSs
are eliminated and they will be not evaluated at runtime. At this stage we
do not yet know what their low level functional performances are so that this
ﬁrst selection is only based on high-level functional and non-functional aspects.
Runtime feedbacks will provide this information and allow us to iteratively reﬁne
this analysis procedure.

MAS Architectural Design. Based on the i* and NFR organizational and
goal analysis above, the next step is to deﬁne the MAS architecture and specify
the characterization of agent behavior typically referring to the sociocentric de-
sign of multiagent architecture exposed in [17]. The result is expressed in terms
of agents and capabilities requiring resources such as those summarized in Fig-
ure 9 for the Select Most Adequate Transport goal from Figure 7. Speciﬁcally the
realization path concept presented above is applied to the goal analysis.

Figure 10 details the sequence diagram documenting the evoked goal’s success

scenario.

Phase Milestone. The objective of this phase was to overview the life cycle
objectives so that the RE, CES and System Design disciplines have (partly) been
presented. No formal constraints are associated with this phase so that we can
continue with the next process phase (i.e. blueprinting).

5.3 Blueprinting

We only focus here on the Select Most Adequate Transport goal, as an illustrative
example. The aim of this goal is, for a carrier, to select the oﬀer from the most
adequate transport (if he or she has one) to transport the shipper’s demand (for
a deﬁned amount of merchendise to be transported from a source to a destination
under deﬁned constraints as dates, transportation mode, etc).

To select the most adequate transport three main actors of the MAS are
involved: the Shipper, Carrier and Infrastructure Manager (agents are the in-
stances of these actors). Capabilities that agents are responsible for and mod-
elled with respect to Section 3 are extensively described in Figure 9. Capabilities
realization are delegated to the most adequate specialist component using the
procedure described in Section 3.

Phase Milestone. Figure 11 represents a MAS runtime within the Blueprinting
phase. It documents the capabilities that are available with QoS over minimal
values (A) or not-available (N/A) in each of the integrated TMS components
as well as whether they are selected for capability execution at runtime or not
(best). The rntime report shows that at the end of the iteration each of the
capabilities are not fulﬁlled under QoS and cost constraints. Indeed, capabilities
6 and 9 are not fulﬁlled by any of the integrated components so that it cannot
fulﬁll the blueprinting milestone within the constraint expressed in section 4.

An Iterative Process for CBSD Centered on Agents

57

e
c
vi
r
e
s

r
e
i
r
r
a
C

n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
h
t
(

d
n
a
m
e
d

e
h
t

n
e
e
w
t
e
b

s
e
h
c
t
a
m
e
b
s
s
o
p

i

l

t
s
e
u
q
e
r
_
c

i
t
s
g
o

i

l

r
e
p
p
h
S

i

t
s
e
u
q
e
r
_
c

i
t
s
g
o

i

l

r
e
i
r
r
a
C

e
c
r
u
o
s
s
e
R

l

i

e
b
s
n
o
p
s
e
R

t

n
e
g
A

o
r
p
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t

l

a
s
o
p

o
r
p
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t

l

a
s
o
p

o
r
p
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t

l

a
s
o
p

l
l

a
c
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
u
q
e
s
_
n
o
i
t
u
o
s
e
r
_

l

e
c
n

l
l

a
c
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
u
q
e
s
_
n
o
i
t
u
o
s
e
r
_

l

e
c
n

r
e
i
r
r
a
C

r
e
i
r
r
a
C

r
e
g
a
n
a
M
_
e
r
u
t
c
u
r
t
s
a
r
f
n
I

n
o

s
r
e
w
s
n
a

t
i

t
s
e
u
q
e
r

n
o

;
d
e
k
o
o
b

e
b

l

d
u
o
h
s

d
n
a

d
e
t
i

m

i
l

e
r
a

s
e
c
r
u
o
s
s
e
R

i

l

.
e
b
s
s
o
p

l

.
s
a
s
o
p
s
d

i

s
n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
k
a
m
o
t

s
e
c
r
u
o
s
s
e
r

f
o

s
e
i
r
e
s

a

s
e
g
a
n
a
m

r
e
g
a
n
a
M
e
r
u
t
c
u
r
t
s
a
r
f
n
I

e
h
T

s
t
r
o
p
s
n
a
r
t

l

i

e
b
s
s
o
p

t
r
o
p
s
n
a
r
t
(
y
t
i
l
i

b
a

l
i

a
v
A
e
r
u
t
c
u
r
t
s
a
r
f
n
I
e
t
a
u
a
v
e

l

)
l
a
s
o
p
o
r
p
_
n
o
i
t
a

)
l
a
s
o
p
o
r
p
_
n

e
h
t

i

e
v
e
h
c
a

y

l
l

u
f
s
s
e
c
u
s

o
t

d
e
d
e
e
n

s
n
o
i
t
a
r
e
p
o

c

i
t
s
g
o

i

l

d
e
r
i
u
q
e
r

e
h
t

s
e
t
u
p
m
o
c

r
e
i
r
r
a
C
e
h
T

o
i
t
a
t
r
o
p
s
n
a
r
t
(
s
n
o
i
t
a
r
e
p
O
d
e
r
i
u
q
e
R
e
t
u
p
m
o
c

r
e
p
p
h
S

i

r
e
i
r
r
a
C

e
h
t

,
l
a
s
o
p
o
r
p

e
c
n
e
u
q
e
s

n
o
i
t
u
o
s
e
r

l

l
l

a
c

n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
h
t

d
e
t
p
e
c
c
a

s
a
h

i

r
e
p
p
h
S
e
h
t

n
e
h
W

n
o
i
t
a
t
r
o
p
s
n
a
r
t
(
e
c
n
a
t
p
e
c
c
A
a
s
o
p
o
r
P
e
d
n
a
h

l

l

.
t
i

l
l
i
f
l
u
f

l

y
e
t
a
u
q
e
d
a

o
t

d
e
r
i
u
q
e
r

s
e
r
u
d
e
c
o
r
p

e
h
t

i

g
n
vi
e
h
c
a
f
o

e
g
r
a
h
c

n

i

s

i

r
e
i
r
r
a
C

)
e
c
n
e
u
q
e
s
_
n
o
i
t
u
o
s
e
r
_

l

l
l

a
c
_

.
r
e
i
r
r
a
C
e
h
t

y
b

d
e
t
t
i

m
b
u
s

l

a
s
o
p
o
r
p

)
e
c
n
e
u
q
e
s
_
n
o
i
t
u
o
s
e
r
_

l

l
l

a
c
_

e
c
n
e
u
q
e
s

n
o
i
t
u
o
s
e
r

l

l
l

a
c

n
o
i
t
a
t
r
o
p
s
n
a
r
t

e
h
t

g
n
i
t
p
e
c
c
a

r
o
f

i

l

e
b
s
n
o
p
s
e
r

s

i

i

r
e
p
p
h
S
e
h
T

n
o
i
t
a
t
r
o
p
s
n
a
r
t
(
e
c
n
e
u
q
e
S
n
o
i
t
u
o
s
e
R
t
p
e
c
c
a

l

t
r
o
p
s
n
a
r
t

r
e
i
r
r
a
C

d
n
a

r
e
i
r
r
a
C
e
h
t

f
o

t
r
a
p

e
b

l
l
i

w

t
i

t
a
h
t

o
s

t
r
o
p
s
n
a
r
t

e
h
t

g
n
i
t
a
e
r
c

f
o

e
g
r
a
h
c

n

i

s

i

r
e
i
r
r
a
C
e
h
T

i

.
s
g
n
n
n
a
p

l

e
r
u
t
u
f

s
t
n
e
g
a

d
e
vl
o
v
n

i

r
e
h
t
o

)
l
a
s
o
p
o
r
p
_
t
r
o
p
s
n
a
r
t
(
t
r
o
p
s
n
a
r
T
e
t
a
e
r
c

t
s

i
l

_
n
o
i
t
a
r
e
p
o

r
e
g
a
n
a
M
_
e
r
u
t
c
u
r
t
s
a
r
f
n
I

e
r
u
t
c
u
r
t
s
a
r
f
n

i

e
h
t

t
a

d
e
k
o
o
b

e
r
a

t
r
o
p
s
n
a
r
t

e
h
t

l
l
i
f
l
u
f

l

y
e
t
a
u
q
e
d
a

o
t

s
e
c
r
u
o
s
s
e
r

d
e
r
i
u
q
e
R

r
e
g
a
n
a
m

)
t
s

i
l

_
n
o
i
t
a
r
e
p
o
(
s
e
c
r
u
o
s
s
e
R
d
e
r
i
u
q
e
R
k
o
o
b

0
1

r
e
i
r
r
a
C
a

o
t

l
l

a
C
_
n
o
i
t
a
t
r
o
p
s
n
a
r
T
a
f
o
m
r
o
f

e
h
t

n

i

t
s
e
u
q
e
R
_
c

i

i
t
s
g
o
L

a

s
t
i

m
s
n
a
r
t

i

r
e
p
p
h
S
e
h
T

i

h
c
h
w

(

t
s
e
u
q
e
r

c

i
t
s
g
o

i

l

a

s
e
t
a
e
r
c

t
i

)
s
n
o
s
a
e
r

l

a
n
r
e
t
n

i

r
o
f

r
o

r
e
d
r
o

n
a

l
l
i
f
l
u
f

o
t

y

l
l

a
r
e
n
e
g
(

)
(
t
s
e
u
q
e
R
c

i

i
t
s
g
o
L
e
t
a
e
r
c

)
t
p
e
c
n
o
c

l

a
n
r
e
t
n

i

n
a

i

s
n
a
m
e
r

n
o
i
t
a
n
i
t
s
e
d

a

o
t

e
c
r
u
o
s

a
m
o
r
f

i

e
s
d
n
a
h
c
r
e
m

t
r
o
p
s
n
a
r
t

o
t

s
e
r
i
u
q
e
r

i

r
e
p
p
h
S
e
h
t

n
e
h
W

n
o

i
t

p
i
r
c
s
e
D

y
t
i
l
i

b
a
p
a
C

°
N

d
n
a

r
e
f
f
o

n
o
i
t
a
t
r
o
p
s
n
a
r
t

h
c
a
m
o
t

i

s
t
n
a
r
t
s
n
o
c

e
h
t

i

g
n
x
a
e
r

l

)
r
e
i
r
r
a
C
a

o
t

d
e
s
s
e
r
d
a

s
e
m

i
t
/
s
e
t
a
d

l

a
v
i
r
r
a

d
n
a

s
e
r
u
t
r
a
p
e
d

d
e
t
s
e
u
q
e
r

h
t
i

w

t
s
e
u
q
e
R
_
c

i

i
t
s
g
o
L

a

s

i

l
l

a
C
_
n
o
i
t
a
t
r
o
p
s
n
a
r
T
e
h
t

,
t
n
e
m
e
r
i
u
q
e
r

t
c
a
r
t
s
b
a

n
a

s

i

t
s
e
u
q
e
R
_
c

i

i
t
s
g
o
L

t
i

o
S

.
s
e
c
vi
r
e
S
n
o
i
t
a
t
r
o
p
s
n
a
r
T

f
o
m
r
o
f

e
h
t

n

i

r
e
f
f
o

n
o
i
t
a
t
r
o
p
s
n
a
r
t

a
f
o

s
e
s
o
p
s
d

i

r
e
i
r
r
a
C
e
h
T

e
h
t

t
a
h
t

e
t
o
n
(

m
e
h
t

e
z

i
l

a
e
r

o
t

i

g
n
n
n
a
p

l

a

i

g
n
s
o
p
o
r
p
f
o

e
g
r
a
h
c

n

i

s

i

s

i

i

h
c
h
w

e
h
t

g
n
i
t
a
u
a
v
e
f
o

l

e
g
r
a
h
c

n

i

s

i

.
r
e
f
f
o

n
w
o

s
t
i

d
n
a

)
l
l

a
c

s
d
e
e
n

y

l
l

a
u
t
n
e
v
e

r
e
i
r
r
a
C
e
h
T

.
d
n
a
m
e
d

)
t
s
e
u
q
e
r
_
c

i

i
t
s
g
o
l
(
l
l

a
C
n
o
i
t
a
t
r
o
p
s
n
a
r
T
e
d
n
a
h

l

p
s
n
a
r
t
(
r
e
f
f

O
e
c
vi
r
e
S
n
o
i
t
a
t
r
o
p
s
n
a
r
T
e
t
a
u
a
v
e

l

)
l
l

a
c
_
n
o
i
t
a
t
r
o

)
l
l

a
c
_
n
o
i
t
a
t
r
o
p
s
n
a
r
t
(
s
t
n
a
r
t
s
n
o
C
x
a
e
r

i

l

1

2

3

4

5

6

7

8

9

Fig. 9. Select Most Adequate Transport: Capabilities Description

58

Y. Wautelet, S. Kiv, and M. Kolp

This information is thus provided to analysts that can take a development
decision to be achieved in the next iteration so that the MAS can fulﬁl the mile-
stone constraint. In this particular case the taken decision is the customization
of respectively TMS components 1 and 2.

: Shipper
: Shipper

: Carrier
: Carrier

:
:

InfrastructureM...
InfrastructureM...

1: createLogisticRequest( )

2: handleTransportationCall()

3: evaluateTransportationServiceOffer( )

4: relaxConstraints( )

5: computeRequiredOperations( )

7: transportation_call_resolution_sequence

6: evaluateInfrastructureAvailability( )

8: acceptResolutionSequence( )

9: handleProposalAcceptance( )

10: createTransport( )

11: bookRequiredRessources( )

12: transport_caracteristics

Fig. 10. The resolution path of Select Most Adequate Transport goal

5.4 Building

Phase Milestone. Figure 12 resumes a MAS runtime report of the Building
phase. It documents the capabilities that are available with QoS over minimal
values (A) or non-available (N/A) in each of the integrated TMS components
as well as whether they are selected for capability execution at runtime or not
(best).

Since we are at the Building phase, each of the capabilities is fulﬁlled under
QoS and cost constraints. The focus of this phase is on minimizing the overall
execution cost of the MAS so that the analysts can overview if they can lower
it by removing a component from the MAS design. In this particular case they
can, for example, overview the possibility of removing TMS3 (see section 6 for
more information). In the actual state of deﬁnition if the execution is below the
maximum deﬁned cost then the milestone constraint is met and the project can
move to the Setuping phase. Further work involves reﬁning the cost ontology
and consequently reﬁning the cost constraint(s) of the milestone.

5.5 Setuping

Phase Milestone. In line with the deﬁnition of section 4, as long as there is
no new component integrated into the system, the MAS is at equilibrium.

An Iterative Process for CBSD Centered on Agents

59

Capab. 1 Capab. 2 Capab. 3 Capab. 4 Capab. 5 Capab. 6 Capab. 7 Capab. 8 Capab. 9 Capab. 10

TMS1
TMS2
TMS3

best
A
N/A

A
best
N/A

N/A
best
A

A
best
N/A

best
A
A

N/A
N/A
N/A

A
A
best

A
best
N/A

N/A
N/A
N/A

best
N/A
A

Fig. 11. A MAS Runtime Report at Blueprinting Phase

Capab. 1 Capab. 2 Capab. 3 Capab. 4 Capab. 5 Capab. 6 Capab. 7 Capab. 8 Capab. 9 Capab. 10

TMS1
TMS2
TMS3

best
A
N/A

A
best
N/A

N/A
best
A

A
best
N/A

best
A
A

A
N/A
best

A
A
best

A
best
N/A

N/A
best
N/A

best
N/A
A

Fig. 12. A MAS Runtime Report at Building Phase

6 A Perspective on the Process Cost

We propose here a mathematical constraint formulation to estimate the overall
cost of the software process use within a particular (but general and realistic)
cost ontology so that we ﬁrst clarify some MAS concepts in the speciﬁc context
of this mathematical formulation. First of all, let us remind that MAS agents
emit capability requests; these are “matched” with the components advertised
capabilities. We emphasize hereby that advertised capabilities are ranked as a
single index suite from 1 to n. In other words and to ease the formulation of the
problem, a same capability advertised by two or more diﬀerent components will
get two diﬀerent index numbers with nothing indicating that they could fulﬁl a
same capability request.

The following indices are deﬁned:

– j for the components present into the system;
– m for the capability requests of the MAS;
– n for the advertised capabilities by the components;
– t for the project iterations.

The data available into the MAS is depicted as follows:

– Dn equals 1 if capability n is initially advertised; 0 otherwise;
– Cn is the variable cost of using advertised capability n;
– Kn is the ﬁxed cost for developing capability n;
– Bj

n equals 1 if capability n is advertised or could be advertised if developed

by component j; 0 otherwise;

– Sj subscription cost for 1 period for using component j;
– N t

m amount of capability requests m - for a same speciﬁc capability - in

period t;

– Am

wise.

n equals 1 if advertised capability n fulﬁls capability request m; 0 other-

60

Y. Wautelet, S. Kiv, and M. Kolp

The model variables are:

– xt

n (continuous) represents the number of units of advertised capability n

executed in period t;
j (binary) equals 1 if subscription is paid to component j in period t;
n (binary) equals 1 if advertised capability n is developed in period t;

– yt
– zt

The mathematical formulation of the problem is as follows:

(1)

(2)

(3)

(4)

The objective (1) minimizes the overall MAS cost (we assume only capabilities
over minimal QoS are advertised). The supported cost is divided into 3 compo-
nents:

– the overall subscription cost represented by the sum of all the subscriptions

paid for any of the used components at any periods;

– the variable costs paid for consumptions of any of the used capabilities at

any period;

– the overall capability development cost represented by the sum of all the

capabilities development costs at any periods;

Constraint (2) ensures that the requirement for capability m in period t is met.
It states that the number of units of advertised capabilities n, which fulﬁls the
capability m, executed in period t is suﬃcient.

Constraint (3) authorizes the execution of advertised capability n only if it is
developed. The capability is developed in period t if it was initially developed,
which is indicated by Dn, or if it was developed in a previous or in the current
period, which is indicated by the sum over the corresponding z variables. M is
a large number.

Constraint (4) authorizes the execution of advertised capability n only if sub-

scription is paid to the component j owning the advertised capability n.

7 Related Work

A number of component-based software development methods have been pro-
posed in the literature. We ﬁrst overview the need for multiple-components in a
single software development as well as the importance of the functional aspects

An Iterative Process for CBSD Centered on Agents

61

on a low level basis, then we will evaluate the literature on the particular aspect
of iterative development in CBSD.

Historically, [18] has been the ﬁrst methodology proposed for component se-
lection, more speciﬁcally COTS (Commercial Oﬀ The Shelf) components. It
notably distinguishes three phases: searching, screening and evaluation. It no-
tably provides some speciﬁc techniques for those phases and has served as a ﬁrst
basis for the development of other methods. In the same way, STACE (Social-
Technical Approach to COTS Evaluation) [20] has been the ﬁrst to emphasize
the importance of social and organizational issues to components selection pro-
cess as well as the other non-technical factors such as the relationship with the
vendor. These two ﬁrst methodologies remains nevertheless limited and do not
support the complex process of requirements analysis balanced with component
features limitations.

[27] highlights the fact that components are designed to meet the needs of a
marketplace rather than satisfying the requirements of a particular organization.
Consequently, there is no single component satisfying them all and can be real-
ized by the use of multiple components. This statement is fundamental in our
approach where we consider components as low level functional service providers
rather than entirely packaged solutions.

Moreover a series of proposed component-based software development meth-
ods consider the focus on non-functional requirements more important than on
functional ones since the latests are already present (see for example in [3]). We
will overview here some methodologies focused on non-functional aspects, more
speciﬁcally:

– [1] proposes the CRE (COTS based on Requirements Engineering) model
for the components selection. The CRE model focuses on non-functional re-
quirements to assist the processes of evaluation and selection of components.
The CRE model adopts the NFR framework proposed in [9] for acquiring
the user non-functional requirements;

– [25] proposes the REACT (REquirement-ArChiTecture) approach for the
components selection. The innovation, implemented in REACT, was to ap-
ply i* SD models to model software architectures in terms of actors depen-
dencies to achieve goals, satisfy soft goals, consume resources and undertake
tasks. The i* SD models are derived from existing use cases to represent the
architecture of the system. The components are then selected to be plugged
into the system architecture as instances of models actors.

– [29] proposes FaMOS-C, a service-oriented FrAMework fOr maS modeling
and Component selection. This approach emphasizes the importance of the
functional and non-functional requirements of the system under development
for identifying and selecting the compoent software components and provides
a practical model supporting its application. The NFR analysis is however
performed at higher level than in the approach presented in this paper.

We do not minimize the importance of non-functional requirements but state
the prior aspect of a component remains its functional one in order to best sat-
isfy user requirements. Moreover, by nature, our approach focuses on low-level

62

Y. Wautelet, S. Kiv, and M. Kolp

functionalities so that part of non-functional requirements can easily be taken
into account at upper level and the other part is passed on the advertised QoS.
Indeed, we use a classical software development process where non-functional
requirements are identiﬁed during analysis disciplines and can be taken into ac-
count when developing interfaces to the MAS. The later serves as an abstraction
layer to the low level functionalities (called the capabilities). Our approach is
more ﬂexible and development-oriented. Indeed, CRE, REACT and FAMOS-C
distinguish a set of high level functional and non-functional requirements and
evaluates them at the light of those modelled for a speciﬁc project for an ade-
quate selection. Finally, one can believe that we adopt all the market available
components without adequate analysis. This approach is however present (as
evoked in Section 4) but not completely documented in the paper since the
focus is on the MAS and its integration into an agent iterative process such
as I-Tropos. [16] documents this two levels (macro-level goals and micro-level
capabilities) analysis framework and applies it on the same case study.

With respect to iterative development in CBSD, PORE (Procurement-
Oriented Requirements) [21] is a template-based approach for evaluating com-
ponents in an iterative manner. Following [2], its model distinguishes four goals:

– acquiring information from stakeholders;
– analysing the information to determine if it is complete and correct;
– making the decision about product requirement compliance if the acquired

information is suﬃcient;

– selecting one or more candidate components.

The study of the existing components functional aspects as well as the “tra-
ditional” requirements engineering do constitute parallel activities with, more-
over, an iterative process for acquiring requirements and evaluating the available
components. The idea is to progressively reject products that do not meet user
requirements. This approach is also present in our process where components
are also progressively rejected but on a two level basis. At ﬁrst, they are selected
on the basis of their high level functional aspects depicted in a goal model and
second they are selected dynamically at runtime on the basis of their ability to
resolve the required capabilities. They can be rejected at any time in the project
lifecycle if they are comparatively not enough performing (on the basis of cost
and QoS constraints) and not indispensable (see case study in Section 5). The
idea of a progressive rejection is thus also present but goes further by evalu-
ating execution possibilities on a low level basis and consuming the cheapest
solution oﬀered by components. The selection process is thus not only based on
a functional evaluation but also on cost and QoS constraints at runtime.

Finally, CARE (COTS-Aware Requirements Engineering) [8] proposes to cre-
ate a Digital Library System for storing component speciﬁcations. This means
that they deﬁne a goal-oriented process for describing and selecting components
from a technical view. For any identiﬁed component, they capture its functional
speciﬁcation in the form of hard and softgoals and further deﬁne their speci-
ﬁcation. Then, they are stored and maintained in a knowledge base called the
Digital Library System. On the basis of the component descriptions, a research

An Iterative Process for CBSD Centered on Agents

63

can determine which product(s) can be useful. Some of the CARE ideas are also
present in the process described in this paper. Among them we ﬁnd the com-
parison of functional features of the components and the idea of using a series
of components to fulﬁl deﬁned goals in a classical software engineering process.
Once again, we consider, in the approach presented in this paper, functional
speciﬁcations on the lowest level in order to have an implementation where real-
time functional calls can be ordered to components at runtime. We consequently
do not point to a global components library but rather a selection in the develop-
ment process of potential components candidates competing at runtime within
the developed MAS.

8 Conclusion

Software reuse can lead to reduced costs through CBSD if components are ade-
quately selected and their integration can be done ﬂexibly. Since they are generi-
cally developed, components can hardly meet the organization expectations and
user requirements at once. Moreover, some components are better performing
than others on particular functions and practitioners need methods to evaluate,
customize and combine them for proper integration. In that perspective, we have
deﬁned in this paper a methodology for CBSD centred on agents in Section 2. A
conceptual model deﬁnes, in Section 3 a set of concepts to build the context spe-
ciﬁc MAS and constraints to monitor its iterative evolution properly in Section
4. Section 5 proposes an illustration based on a real-world case study.

The MAS architecture is designed to be centric in the development methodol-
ogy and bridge, in the form of an abstraction layer, the traditional organizational
analysis i* and NFR – describing the required behaviour of software components
– with the functional aspects they oﬀer. Even if, by nature, one could be tempted
to apply a technology driven process in CBSD, a requirements-driven approach
is preferable since the developed system based on components has to adequately
ﬁt the target organization. In that perspective, using models is from primary
interest. The MAS is built from the domain model (i.e., the i*/NFR models);
agents are in charge of capabilities which are realized through delegation to
software components so that the business logic is encapsulated into the ad-hoc
MAS to-be. Components are considered here to be ﬂexible source code packages
that communicate through an API to execute speciﬁed functionalities at deﬁned
costs. They are also supposed to be customizable at evaluable cost.

Outside this vertical dimension, the process proposed here also oﬀers an hor-
izontal (iterative) one in which a series of constraints applied to the MAS archi-
tecture ensures a proper follow-up of the project life cycle.

The MAS conceptual model can still be subject to more evolutions notably
in terms of adaptive intelligence. Moreover, the software project management
perspective could be larger with the adoption of complete risk, quality and time
disciplines at managerial level. Also, the constraints depicted for the process
milestones are not a ﬁxed set but can be subject to more evolutions in order
to incorporate other aspects determining the software project evolution. Con-
straints on requirements can for example easily be integrated. Finally, on an

64

Y. Wautelet, S. Kiv, and M. Kolp

empirical basis more case studies into diﬀerent application domains could en-
hance the framework to a higher level of maturity.

References

1. Alves, C., Castro, J., Alencar, F.: Requirements engineering for cots selection. In:
The Third Workshop on Requirements Engineering, Rio de Janeiro, Brazil (2000)
2. Ayala, C.: Systematic construction of goal-oriented cots taxonomies. PhD Thesis

(2008)

3. Beus-Dukic, L., Bøegh, J.: COTS software quality evaluation. In: Erdogmus, H.,
Weng, T. (eds.) ICCBSS 2003. LNCS, vol. 2580, pp. 72–80. Springer, Heidelberg
(2003)

4. Boehm, B.W., Port, D., Yang, Y., Bhuta, J.: Not all CBS are created equally:
COTS-intensive project types. In: Erdogmus, H., Weng, T. (eds.) ICCBSS 2003.
LNCS, vol. 2580, pp. 36–50. Springer, Heidelberg (2003)

5. Brown, A., Johnston, S., Kelly, K.: Using service-oriented architecture and
component-based development to build web service applications. White paper, IBM
Corporation (2003)

6. Boehm, B.W., Abts, C., Clark, E.B.: Cocots: a cots software integration cost model:
model overview and preliminary data ﬁndings. In: The 11th ESCOM Conference,
Munich, Geremany, pp. 325–333 (2000)

7. Castro, J., Kolp, M., Mylopoulos, J.: Towards requirements-driven information

systems engineering: the tropos project. Inf. Syst. 27(6), 365–389 (2002)

8. Chung, L., Cooper, K.: Deﬁning goals in a cots-aware requirements engineering

approach. System Engineering 7(1), 61–83 (2002)

9. Chung, L., Nixon, B., Yu, E., Mylopoulos, J.: Non-functional requirements in soft-

ware engineering. Kluwer Academic Publishing, Dordrecht (2000)

10. Estrada, H., Rebollar, A.M., Pastor, ´O., Mylopoulos, J.: An empirical evalua-
tion of the i* framework in a model-based software generation environment. In:
Martinez, F.H., Pohl, K. (eds.) CAiSE 2006. LNCS, vol. 4001, pp. 513–527.
Springer, Heidelberg (2006)

11. Giorgini, P., Massacci, F., Mylopoulos, J., Zannone, N.: Modeling security require-
ments through ownership, permission and delegation. In: RE, pp. 167–176 (2005)
12. Giorgini, P., Massacci, F., Mylopoulos, J., Zannone, N.: Requirements engineering
for trust management: model, methodology, and reasoning. Int. J. Inf. Sec. 5(4),
257–274 (2006)

13. Object Management Group. Software process engineering metamodel. version 2.0.

Technical report (2008)

14. Haesen, R., Snoeck, M., Lemahieu, W., Poelmans, S.: On the deﬁnition of service
granularity and its architectural impact. In: Bellahs`ene, Z., L´eonard, M. (eds.)
CAiSE 2008. LNCS, vol. 5074, pp. 375–389. Springer, Heidelberg (2008)

15. IBM. The rational uniﬁed process. Rational Software Corporation, Version

2003.06.00.65 (2003)

16. Kiv, S., Wautelet, Y., Kolp, M.: A process for cots-selection and mismatches han-
dling - a goal-driven approach. In: Filipe, J., Fred, A.L.N., Sharp, B. (eds.) ICAART
(1), pp. 98–106. INSTICC Press (2010)

17. Kolp, M., Wautelet, Y., Faulkner, S.: Social-centric design of multi-agent architec-
tures. In: Yu, E., Giorgini, P., Maiden, N., Mylopoulos, J. (eds.) Social Modeling
for Requirements Engineering. MIT Press, Cambridge (2011)

An Iterative Process for CBSD Centered on Agents

65

18. Kontio, J.: A cots selection method and experiences of its use. In: Proceedings of

the 20th Annual Software Engineering Workshop, Maryland (1995)

19. Kruchten, P.: The rational uniﬁed process: An introduction. Addison-Wesley, Long-

man (2003)

20. Kunda, D., Brooks, L.: Applying social-technical approach for cots selection. In:

Proceeding of the 4th UKAIS Conference, University of York (1999)

21. Maiden, N.A.M., Kim, H., Ncube, C.: Rethinking process guidance for select-
ing software components. In: Palazzi, B., Gravel, A. (eds.) ICCBSS 2002. LNCS,
vol. 2255, pp. 151–164. Springer, Heidelberg (2002)

22. Pache, G., Spalanzani, A.: La gestion des chanes logistiques multi-acteurs: perspec-

tives stratgiques. Presses Universitaires de Grenoble, PUG (2007)

23. Pastor, O., Estrada, H., Mart´ınez, A.: The strengths and weaknesses of the i*
framework: an experimental evaluation. In: Giorgini, P., Maiden, N., Mylopoulos,
J. (eds.) Social Modeling for Requirements Engineering. Cooperative Information
Systems series. MIT Press, Cambridge (2011)

24. Royce, W.: Software project management: a uniﬁed framework. Addison-Wesley,

Reading (1998)

25. Sai, V., Franch, X., Maiden, N.A.M.: Driving component selection through actor-
oriented models and use cases. In: Kazman, R., Port, D. (eds.) ICCBSS 2004.
LNCS, vol. 2959, pp. 63–73. Springer, Heidelberg (2004)

26. Samii, A.K.: Stratgie logistique, supply chain management: Fondements - m´ethodes

- applications, Dunod (2004)

27. Tran, V., Liu, D.-B., Hummel, B.: Component-based systems development: chal-
lenges and lessons learned. In: International Workshop on Software Technology and
Engineering Practice, p. 452 (1997)

28. Wautelet, Y.: A goal-driven project management framework for multi-agent soft-
ware development: The case of i-tropos. PhD thesis, Universit´e catholique de Lou-
vain, Louvain School of Management (LSM), Louvain-La-Neuve, Belgium (August
2008)

29. Wautelet, Y., Achbany, Y., Kiv, S., Kolp, M.: A service-oriented framework for
component-based software development: An i* driven approach. In: Filipe, J.,
Cordeiro, J. (eds.) ICEIS. LNBIP, vol. 24, pp. 551–563. Springer, Heidelberg (2009)
30. Wautelet, Y., Achbany, Y., Kolp, M.: A service-oriented framework for mas mod-

eling. In: Cordeiro, J., Filipe, J. (eds.) ICEIS (3-1), pp. 120–128 (2008)

31. Yu, E.: Social Modeling for Requirements Engineering. MIT Press, Cambridge

(2011)

Cellular Gene Expression Programming
Classiﬁer Learning

Joanna J¸edrzejowicz1 and Piotr J¸edrzejowicz2

1 Institute of Informatics, Gda´nsk University,
Wita Stwosza 57, 80-952 Gda´nsk, Poland
jj@inf.ug.edu.pl
2 Department of Information Systems, Gdynia Maritime University,
Morska 83, 81-225 Gdynia, Poland
pj@am.gdynia.pl

Abstract. In this paper we propose integrating two collective computa-
tional intelligence techniques: gene expression programming and cellular
evolutionary algorithms with a view to induce expression trees, which,
subsequently, serve as weak classiﬁers. From these classiﬁers stronger
ensemble classiﬁers are constructed using majority-voting and boosting
techniques. The paper includes the discussion of the validating experi-
ment result conﬁrming high quality of the proposed ensemble classiﬁers.

Keywords: gene expression programming, cellular evolutionary algo-
rithm, ensemble classiﬁers.

1 Introduction

Gene expression programming introduced by Ferreira [6] is an automatic pro-
gramming approach. In GEP computer programs are represented as linear char-
acter strings of ﬁxed-length called chromosomes which, in the subsequent ﬁtness
evaluation, can be expressed as expression trees of diﬀerent sizes and shapes.
The approach has ﬂexibility and power to explore the entire search space, which
comes from the separation of genotype and phenotype. As it has been observed
by Ferreira [7] GEP can be used to design decision trees, with the advantage
that all the decisions concerning the growth of the tree are made by the algo-
rithm itself without any human input, that is, the growth of the tree is totally
determined and reﬁned by evolution.

Several experiments with gene expression programming for classiﬁcation tasks
were presented in [11], [12]. In this paper, following [13], gene expression pro-
gramming is strengthened by the paradigm of cellular evolutionary algorithms
- the population of genes is structured by using the concept of neighbourhood.
Individuals can only interact with their closest neighbours in the population. For
an introducion to cellular evolutionary algorithms see [1].

The paper is organized as follows. In section 2 classiﬁers induced by gene ex-
pression programming are proposed and discussed. In section 3 two classiﬁcation

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 66–83, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

Cellular Gene Expression Programming Classiﬁer Learning

67

algorithms based on gene expression programming and cellular evolutionary al-
gorithms are introduced. In section 4 the results of validating experiment are
shown. Finally, section 5 contains conclusions.

2 Using Cellular Gene Expression Programming to

Induce Classiﬁers

1 , . . . , wd

n) with wd

Consider data classiﬁcation problem. In what follows C is the set of categorical
classes which are denoted 1, . . . , |C|. We assume that the learning algorithm is
provided with the training set T D = {< d, c > | d ∈ D, c ∈ C} ⊂ D × C, where
D is the space of attribute vectors d = (wd
i being symbolic or
numeric values. The learning algorithm is used to ﬁnd the best possible approx-
imation ¯f of the unknown function f such that f (d) = c. Then ¯f is a classiﬁer
which can be applied to ﬁnd the class c = ¯f (d) for any d ∈ D. As usual when
applying GEP methodology, the algorithm uses a population of chromosomes,
selects them according to ﬁtness and introduces genetic variation using several
genetic operators. Each chromosome is composed of a single gene (chromosome
and gene mean the same in what follows) divided into two parts as in the original
head-tail method [6]. The size of the head (h) is determined by the user with
the suggested size not less than the number of attributes in the dataset. The
size of the tail (t) is computed as t = h(n − 1) + 1 where n is the largest arity
found in the function set. In the computational experiments the functions are:
logical AND, OR, XOR, NOR and NOT. Thus n = 2 and the size of the gene
is h + t = 2h + 1. The terminal set contains triples (op, attrib, const) where op
is one of relational operators <, ≤, >, ≥, =, (cid:6)=, attrib is the attribute number,
and ﬁnally const is a value belonging to the domain of the attribute attrib. As
usual in GEP, the tail part of a gene always contains terminals and head can
have both, terminals and functions. Observe that in this model each gene is
syntactically correct and corresponds to a valid expression. Each attribute can
appear once, many times or not at all. This allows to deﬁne ﬂexible characteris-
tics like for example (attribute1 > 0.57) AND (attribute1 < 0.80). On the other
hand, it can also introduce inconsistencies like for example (attribute1 > 0.57)
AND (attribute1 < 0.40). This does not cause problems since a decision sub-
tree corresponding to such a subexpression would evaluate it to f alse. Besides,
when studying the structure of the best classiﬁers in our experiments the above
inconsistencies did not appear.

The expression of genes is done in exactly the same manner as in all GEP

systems. Consider the chromosome C with head=6, deﬁned below.

1

9
5
0
OR AND AND (>, 1, 0) (=, 2, 5) (>, 1, 2) (<, 1, 10) (>, 3, 0) (<, 3, 5) · · ·

4

3

2

6

7

8

The start position (position 0) in the chromosome corresponds to the root of the
expression tree (OR, in the example). Then, below each function branches are
attached and there are as many of them as the arity of the function - 2 in our case.

68

J. J¸edrzejowicz and P. J¸edrzejowicz

The following symbols in the chromosome are attached to the branches on a given
level. The process is complete when each branch is completed with a terminal.
The number of symbols from the chromosome to form the expression tree is
denoted as the termination point. For the discussed example, the termination
point is 7.

Tradidionally, GEP algorithms work on a single population of genes. Here, the
beneﬁts of structuring the population by deﬁning neighbourhoods are explored.
Individuals are arranged on a torus-like grid of dimension xmax × ymax. Each
point of the grid has a neighbourhood that overlaps the neighbourhood of nearby
individuals; all the neighbourhoods have the same size and identical shape. The
boundary individuals of the grid are connected to the individuals located in the
opposite borders in the same row/column, depending on the case. This results in
toroidal grid and all the individuals have exactly the same number of neighbours.
In the experiments the two most commonly used neighbourhoods were applied:

– L5, or NEWS neighbourhood - 4 nearest neighbours in a given axial (north,

east, west, south) direction,

– C9, or Moore neighbourhood - 8 neighbours in horizontal, vertical and diag-

onal direction.

Table 1. Two neighbourhoods

◦

◦

◦

◦

◦ ⊗

◦

◦

◦

◦

L5)
◦

⊗

•

⊗

◦

◦

◦

◦

◦

◦

◦

C9)
◦

◦

◦

◦ ⊗ ⊗ ⊗ ◦

⊗ ◦

◦ ⊗

•

⊗ ◦

◦

◦

◦

◦

◦ ⊗ ⊗ ⊗ ◦

◦

◦

◦

◦

◦

The algorithm for learning the best classiﬁer using cellular GEP works as
follows. Suppose that a training dataset is given and each row in the dataset
has a correct label representing the class. In the initial step the minimal and
maximal value of each attribute is calculated and a random population of genes
placed on the grid is generated. For each gene the symbols in the head part are
randomly selected from the set of functions AND, OR, NOT, XOR, NOR and
the set of terminals of type (op, attrib, const), where the value of const is in the
range of attrib. The symbols in the tail part are all terminals.

To introduce variation in the population the following genetic operators are

used:

– mutation,
– transposition of insertion sequence elements (IS transposition),

Cellular Gene Expression Programming Classiﬁer Learning

69

– root transposition (RIS transposition),
– one-point recombination,
– two-point recombination.

Mutation can occur anywhere in the chromosome. We consider one-point muta-
tion which means that with a probability, called mutation rate, one symbol in
a chromosome is changed. In case of a functional symbol it is replaced by an-
other randomly selected function, otherwise for g = (op, attrib, const) a random
relational operator op(cid:3), an attribute attrib(cid:3) and a constant const(cid:3) in the range
of attrib(cid:3) are selected. Note that mutation can change the respective expression
tree since a function of one argument may be mutated into a function of two
arguments, or vice versa.

Transposition stands for moving part of a chromosome to another location.
Here we consider two kinds of transposable elements. In case of transposition
of insertion sequence (IS) three values are randomly chosen: a position in the
chromosome (start of IS), the length of the sequence and the target site in the
head - a bond between two positions. For example consider the chromosome
C deﬁned above. Suppose that IS is deﬁned as: start position=6, length=2,
target=0. Then a cut is made in the bond deﬁned by the target site (in the
example between symbol 0 and 1), and the insertion sequence (the symbols
from positions 6 and 7) is copied into the site of the insertion. The sequence
downstream from the copied IS element loses, at the end of the head, as many
symbols as the length of the transposon. The resulting chromosome is shown
below:

1

9
0
OR (<, 1, 10) (>, 3, 0) AND AND (>, 1, 0) (<, 1, 10) (>, 3, 0) (<, 3, 5) · · ·

2

3

5

4

6

8

7

Observe that since the target site is in the head, the newly created individual
is always syntactically correct though it can reshape the tree quite dramatically
as in the above case. The termination point is 3 for the new chromosome.

In case of root transposition, a position in the head is randomly selected, the
ﬁrst function following this position is chosen - it is the start of the RIS element.
If no function is found then no change is performed. The length of the insertion
sequence is chosen. The insertion sequence is copied at the root position and
at the same time the last symbols of the head (as many as RIS length) are
deleted. For the chromosome C deﬁned before and RIS sequence starting with
the function AND at the position 2, of length 2 the resulting chromosome is
deﬁned as:

0

9
5
AND (>, 1, 0) OR AND AND (>, 1, 0) (<, 1, 10) (>, 3, 0) (<, 3, 5) · · ·

4

1

3

2

6

7

8

Again the change has quite an eﬀect since the termination point is now 9.

70

J. J¸edrzejowicz and P. J¸edrzejowicz

For both kinds of recombination two parent chromosomes P1, P2 are randomly
chosen and two new child chromosomes C1, C2 are formed. In case of one-point
recombination one position is randomly generated and both parent chromosomes
are split by this position into two parts. Child chromosomes C1 (respectively, C2)
is formed as containing the ﬁrst part from P1 (respectively, P2) and the second
part from P2 (and P1). In two-point recombination two positions are randomly
chosen and the symbols between recombination positions are exchanged between
two parent chromosomes forming two new child chromosomes. Observe that
again, in both cases, the newly formed chromosomes are syntactically correct no
matter whether the recombination positions were taken from the head or tail.

During GEP learning, the individuals are selected and copied into the next
generation based on their ﬁtness and the roulette wheel sampling with elitism
which guarantees the survival and cloning of the best gene in the next generation.
More details of applied GEP learning can be found in [11].

Genetic operations may only take place in a small neighbourhood (either L5
or C9) of each individual. What is more, the reproductive cycle is applied to all
the individuals synchronously, that is the population for the next generation is
created at the same time for all individuals on the grid.

In order to compare the quality of genes used as classiﬁers two measures are
introduced. Suppose that the learning dataset T R and a class cl ∈ C are ﬁxed.
The ﬁrst measure counts the rows which are classiﬁed incorrectly. For a gene g

nF cl(g) =

(cid:2)

rw∈T R, g(rw) is true

sg(rw is from class (cid:6)= cl)

where

(cid:3)

sg(ϕ) =

1 if ϕ is true
0 otherwise

The second measure is deﬁned as:

nT cl(g) =

(cid:2)

rw∈T R, g(rw) is true

sg(rw is from class cl)

Obviously, for two genes the one with the higher nT cl is better and respectively
for the measure nF cl - the lower the better. Using the above measures, ﬁtness
of a gene g is deﬁned as:

f itnesscl(g) = nT cl(g) − nF cl(g)

The algorithm of cGEP learning is shown as Algorithm 1.

3 Learning Algorithms

Below two learning algorithms, called cGEP-mv and cGEP-ada, are described.

Cellular Gene Expression Programming Classiﬁer Learning

71

Algorithm 1. Algorithm cGEP learning

express genes as expression trees,
calculate ﬁtness of each gene,
keep best gene
for all g ∈ P op do

Require: class cl, training data, integer N G, integer noInd, integer xmax, ymax
1: create the grid of size xmax × ymax with a random population P op
2: for i = 1 to N G do
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17: end for
18: return noInd best genes from P op

nghbrs←CalculateNeighourhood(g)
oﬀspring1←One-pointRecomb(g, nghbrs)
oﬀspring2←Two-pointRecomb(g, nghbrs)
gN ew ← the better ﬁtted of two oﬀsprings
mutation(gN ew)
IStransposition(gN ew)
RIStransposition(gN ew)
Replacement(postion(g), AuxiliaryP op, gN ew)

end for
P op ← AuxiliaryP op

3.1 Algorithm cGEP-mv

Learning takes place in two steps, shown as Algorithms 2 and Algorithm 3.
Firstly, for each class (separately) the population of genes best ﬁtting the class
is found. During this step, in each generation the algorithm cGEP is applied
and using the domination relation (deﬁned below) best individuals are copied
to next generation. The objective of the second step, called meta learning, is to
select subsets of informative genes from the population deﬁned in the ﬁrst step
in order to obtain high classiﬁcation accuracy.

Deﬁnition 1. We say that gene g1 dominates gene g2 in class cl if nT cl(g1) >
nT cl(g2) and nF cl(g1) < nF cl(g2).

The relation of domination is irreﬂexive, antisymmetric and transitive.

Deﬁnition 2. We say that gene g is not dominated in the population pop iﬀ no
gene from pop dominates g.

In the process of meta-learning genetic algorithms are applied in order to se-
lect a subset of genes obtained in the process of learning and resulting in the
population of |C| × sizeBest genes. Now individuals are deﬁned as matrices of
type M G = {0, 1}|C|×sizeBest which correspond to the distribution of genes from
population best. For the matrix mg ∈ M G the set {i : mg[cl, i] = 1} picks up
genes from population bestcl which are meaningful for the class cl. To deﬁne
ﬁtness of an individual mg, we assume the majority vote is performed to classify

72

J. J¸edrzejowicz and P. J¸edrzejowicz

Algorithm 2. Algorithm cGEP-mv, ﬁrst step

Require: training data with correct labels representing |C| classes, integer sizeP op,

integer sizeBest

Ensure: population of sizeBest genes for each class
1: for all cl ∈ C do
2:
3:
4:
5:

population bestcl ← φ
repeat

call algorithm cGEP for class cl to generate pop
add to population bestcl those genes from population pop which are not dom-
inated in population bestcl

until population bestcl contains at least sizeBest elements

6:
7: end for

each data row and the number of correct answers is counted. Let r = (x, y) be
a data row

⎧
⎨

whichcl

i (mg, x) =

⎩

1 if mg[cl, i] = 1 and

population bestcl(i) is true for x

0 otherwise

sizeBest(cid:2)
mv(mg, x) = max
(

cl

i=1

whichcl

i (mg, x))

and, ﬁnally

f itness(mg) =

|r : mv(mg, x) = y|
|dataset|

Standard genetic operators: mutation and crossover are applied to ﬁnd one ma-
trix mg best ﬁtting the given dataset. This matrix is then used in testing where
again, the majority vote is applied.

Algorithm 3. Algorithm cGEP-mv second step (meta-learning)

Require: training data with correct labels representing |C| classes, integer noIter,

population of sizeBest genes for each class,

calculate ﬁtness of each metagene from popM et
using roulette rule choose the metagenes for the next step,

Ensure: best metagene mg
1: create random population popM et of metagenes
2: for i = 1 to noIter do
3:
4:
5: mutation,
6:
crossover,
7: end for
8: return the best metagene mg

Cellular Gene Expression Programming Classiﬁer Learning

73

Algorithm 4. Algorithm cGEP-mv

Require: training data with correct labels representing |C| classes, integer sizeP op,

integer sizeBest, testing data T S

Ensure: qc quality of the majority vote classiﬁer
1: apply Algorithm 2 to deﬁne population best
2: apply Algorithm 3 to ﬁnd metagene mg
3: qc ← 0 {test mg for testing data T S}
4: for all (x, y) ∈ T S do
5:
6:
end if
7:
8: end for
9: qc ← qc/|T S|
10: return qc

if mv(mg, x) = y then

qc ← qc + 1

3.2 Algorithm cGEP-ada

As suggested in [16] a weak classiﬁer can be considerably improved by boosting.
The general idea is to create an ensemble of classiﬁers by resampling the training
dataset and creating a classiﬁer for each sample. In each step the most informa-
tive training data is provided - for example those for which the previous classiﬁer
misclassiﬁed. Then an ensemble of generated classiﬁers together with an intelli-
gent combination rule proves often to be a more eﬃcient approach. Freund and
Schapiro [8] suggested a reﬁnement of a boosting algorithm called AdaBoost. For
a predeﬁned number of iterations T , the following procedures are performed. In
the tth step, according to the current distribution - which is uniform in the ﬁrst
iteration, a sample is drawn from the dataset. The best classiﬁer Ct is found for
the sample and using the whole dataset the error of the current classiﬁcation is
calculated. The distribution is updated so that the weights of those instances
that are correctly classiﬁed by the current classiﬁer Ct are reduced by the factor
depending on the error, and the weights of misclassiﬁed instances are unchanged.
Once T classiﬁers are generated ’weighted majority voting’ is used to classify the
test set. The idea is to promote those classiﬁers that have shown good perfor-
mance during training - they are rewarded with a higher weight than the others.
The details are given in Algorithm 5, where cGEP is used as a weak classiﬁer
and AdaBoost methodology is applied.

It can be observed that in each iteration t the distribution weights of those
instances that were correctly classiﬁed are reduced by a factor βt and the weights
of the misclassiﬁed instances stay unchanged. After the normalization the weights
of instances misclassiﬁed are raised and they add up to 1/2, and the weights of
the correctly classiﬁed instances are lowered and they also add up to 1/2. What
is more, since it is required that the weak classiﬁer has an error less than 1/2, it
is guaranteed to correctly classify at least one previously misclassiﬁed instance.
In the ensemble decision those classiﬁers which produced small error and βt is
close to zero, have a large voting role since 1/βt and logarithm of 1/βt are large.

74

J. J¸edrzejowicz and P. J¸edrzejowicz

Algorithm 5. Algorithm cGEP-ada

Require: training data T D of size N , test dataset T S, integer T , integer M ≤ N -

size of the selected dataset

for the current distribution Dt select a training dataset St ⊂ T D of size M ,
call Algorithm cGEP for the dataset St, receive the classiﬁer Ct
using the majority voting for Ct calculate the error (cid:3)t =
if (cid:3)t > 0.5 then

Ct(xi)(cid:2)=yi

Dt(i)

(cid:7)

, i = 1, . . . , N

Ensure: qc quality of the AdaBoost classiﬁer.
1: initialize the distribution D1(i) = 1
N
2: for t = 1 to T T do
3:
4:
5:
6:
7:
8:
9:
10:

βt = (cid:3)t/(1 − (cid:3)t)

abort

else

end if
{ update the distribution}
for i = 1 to N do

if Ct(xi) = yi then

Dt(i) ← Dt(i) × βt

11:
12:
13:
14:
15:
16:
17: end for

end for

end if
normalize the distribution Dt+1(i) = Dt(i)/Zt, Zt =

(cid:7)

i Dt(i)

{test the ensemble classiﬁer C1, C2, . . . , CT in the test dataset T S}

Ct(x)=i log (1/βt), i = 1, . . . , |C|

Vi =
c ← argmax1≤j≤|C|Vj
if c = y then
qc ← qc + 1

18: qc ← 0
19: for all (x, y) ∈ T S do
(cid:7)
20:
21:
22:
23:
end if
24:
25: end for
26: qc ← qc/|T S|
27: return qc

Cellular Gene Expression Programming Classiﬁer Learning

75

4 Computational Experiment Results

To evaluate the proposed approach computational experiment has been car-
ried out. The experiment involved the following 2-classes datasets from the UCI
Machine Learning Repository [2]: Wisconsin Breast Cancer (WBC), Diabetes,
Sonar, Australian Credit (ACredit), German Credit (GCredit), Cleveland Heart
(Heart), Hepatitis and Ionosphere. Basic characteristics of these sets are shown
in Table 2.

Table 2. Datasets used in the computational experiment

name

data type

attribute type

no. instances no. attributes

WBC
multivariate
Diabetes multivariate,
time-series
multivariate

integer
categorical, integer

real

Sonar
ACredit multivariate categorical, integer, real
GCredit multivariate
Heart
multivariate
Hepatitis multivariate categorical, integer, real
Ionosphere multivariate

categorical, integer
categorical, real

integer, real

699
768

208
690
1000
303
155
351

11
9

61
15
21
14
20
35

In the reported experiment the following classiﬁcation tools have been used:
Cellular GEP with majority voting (cGEP-mv) and Cellular GEP with adaboost
(cGEP-ada) described in details in the previous sections versus 16 well-known
classiﬁers from WEKA Environment for Knowledge Analysis v. 3.7.0 [20] includ-
ing Na¨ıve Bayes, Bayes Net, Logistic Regression, Radial Basis Function Network,
AdaBoost, Support Vectors Machine, Ensemble Selection, Bagging, Classiﬁca-
tion via Clustering, Random Committee, Stacking, Rotation Forest, Decision
Table, FT Tree, Random Forest and C4.5.

Computations involving cGEP-mv have been run with the following arbitrary
parameter settings: xmax = ymax = 15; target population size 80; percent-
age of the non-dominated expression trees taking part in the majority voting
70%; number of iterations in Cellular GEP 250; probability of mutation 0.5,
RIS transposition 0.2, IS transposition 0.2, 1-point recombination 0.2 and
2-point recombination 0.2. Computations involving CGEP-ada have been run
with the following arbitrary parameter settings: xmax = ymax = 10; number of
the Adaboost iterations 5; number of iterations in Cellular GEP 30; number of
repetitions in the class learning 50. The remaining settings are identical as in
case of cGEP-mv. In all WEKA classiﬁers the default parameter settings have
been used.

76

J. J¸edrzejowicz and P. J¸edrzejowicz

Tables 3, 4, 5, 6 and 7 show computation results averaged over 10 repetitions
of the 10-cross-validation scheme. Performance measures include classiﬁer accu-
racy shown in Table 3, the area under the ROC curve shown in Table 4, value
of the F-measure shown in Table 5 and values of the precision and recall shown
in Tables 6 and 7, respectively. Accuracy is understood as a percentage of the
right class predictions over the whole test dataset. An area under the receiver
operating characteristic (ROC) curve calculated as the Wilcoxon-Mann-Whitney
statistic, measures discrimination, that is, the ability of the classiﬁer to correctly
classify “positive” and “negative” instances. The F-measure can be interpreted
as a weighted average of the precision and recall, where a score reaches its best
value at 1 and worst at 0. Finally, the precision for a class is the number of
true positives divided by the total number of elements labeled as belonging to
the positive class (i.e. the sum of true positives and false positives, which are
items incorrectly labeled as belonging to the class). Recall in this context is de-
ﬁned as the number of true positives divided by the total number of elements
that actually belong to the positive class (i.e. the sum of true positives and
false negatives). For the detailed description of the above measures see, for
example, [5].

Table 3. Comparison of the classiﬁer accuracy (%)

no.

classiﬁer

WBC Diab. Sonar ACr. GCr. Heart Hep.

Ion.

Stacking

Naive Bayes
SVM
Logistic
Decision Table
Bayes Net
FT

1
65,52 65,10 53,36 55,51 70,00 55,56 79,35 64,10
2 Class. via clustering 95,71 64,84 54,32 74,06 56,60 77,04 74,19 70,94
95,99 76,30 67,78 77,68 75,40 83,70 84,51 82,62
3
96,99 77,34 75,96 84,92 75,10 84,07 85,16 88,60
4
96,56 77,21 73,08 85,22 75,20 83,70 82,58 88,89
5
95,28 71,22 69,23 83,48 71,00 84,81 76,13 89,46
6
97,14 74,35 80,28 86,23 75,50 81,11 83,22 89,46
7
8
96,99 77,34 79,81 85,51 68,30 82,96 81,29 90,31
9 Ensemble Selection 94,42 74,61 75,48 84,93 73,10 80,00 81,29 90,59
94,85 74,34 71,63 84,64 69,50 80,00 82,58 90,88
10
95,56 74,61 77,40 85,07 74,40 79,26 84,52 90,88
11
95,86 77,21 81,24 86,52 77,37 83,84 87,13 91,35
12
94,56 73,82 71,15 86,09 70,50 76,66 83,87 91,45
13
95,58 76,99 80,79 87,39 76,27 80,24 86,46 91,73
14
15
95,85 75,39 72,11 79,71 74,00 84,07 85,80 92,31
16 Random Committee 95,99 73,95 84,13 83,48 73,90 80,37 84,52 92,59
96,13 73,82 80,77 85,07 72,50 78,15 82,58 92,87
17
Random Forest
96,99 76,69 84,13 87,25 74,80 80,74 82,58 93,73
18 Rotation Forest

AdaBoost M1
Bagging
cGEP-ada
C4.5
cGEP-mv
RBF Network

Cellular Gene Expression Programming Classiﬁer Learning

77

Table 4. Comparison of the area under the ROC curve

no.

classiﬁer

WBC Diab. Sonar ACr. GCr Heart Hep.

Ion.

Stacking

Naive Bayes
SVM
Logistic
Decision Table
Bayes Net
FT

1
0,496 0,497 0,485 0,494 0,500 0,500 0,467 0,485
2 Class. via clustering 0,949 0,605 0,543 0,749 0,524 0,772 0,803 0,715
0,986 0,819 0,800 0,876 0,787 0,898 0,860 0,925
3
0,968 0,720 0,758 0,856 0,671 0,837 0,756 0,853
4
0,993 0,832 0,763 0,904 0,785 0,900 0,802 0,870
5
0,987 0,773 0,763 0,909 0,723 0,877 0,763 0,895
6
0,992 0,806 0,877 0,921 0,780 0,902 0,882 0,948
7
8
0,975 0,763 0,846 0,883 0,662 0,857 0,754 0,896
9 Ensemble Selection 0,987 0,806 0,824 0,906 0,745 0,852 0,733 0,940
0,989 0,801 0,841 0,929 0,723 0,878 0,851 0,944
10
0,987 0,817 0,873 0,915 0,776 0,875 0,821 0,934
11
0.978 0.826 0.845 0.893 0.877 0.843 0,798 0,969
12
0,955 0,751 0,743 0,887 0,639 0,744 0,708 0,892
13
0.980 0.811 0.911 0.890 0.823 0.880 0.921 0,982
14
15
0,986 0,783 0,809 0,854 0,753 0,893 0,835 0,939
16 Random Committee 0,987 0,785 0,912 0,900 0,761 0,866 0,848 0,976
0,988 0,779 0,912 0,914 0,748 0,854 0,835 0,956
17
Random Forest
0,986 0,810 0,925 0,921 0,757 0,883 0,826 0,967
18 Rotation Forest

AdaBoost M1
Bagging
cGEP-ada
C4.5
cGEP-mv
RBF Network

Table 5. Comparison of the F-measure values

no.

classiﬁer

WBC Diab. Sonar ACr. GCr Heart Hep.

Ion.

Stacking

Bayes Net
FT

Naive Bayes
SVM
Logistic

1
0,519 0,513 0,371 0,396 0,576 0,384 0,702 0,501
2 Class. via clust. 0,957 0,645 0,544 0,741 0,579 0,795 0,766 0,715
0,96
3
0,76 0,673 0,769 0,746 0,835 0,848 0,829
0,959 0,763 0,759 0,85 0,741 0,841 0,849 0,883
4
5
0,966 0,765 0,731 0,852 0,744 0,844 0,818 0,887
6 Decision Table 0,953 0,708 0,692 0,835 0,679 0,762 0,757 0,893
0,972 0,742 0,802 0,861 0,749 0,835 0,837 0,894
7
0,97 0,768 0,798 0,855 0,684 0,824 0,812 0,902
8
0,944 0,742 0,754 0,85 0,714 0,827 0,78 0,906
9 Ensemble Sel.
0,948 0,738 0,716 0,846 0,665 0,821 0,823 0,906
10 AdaBoost M1
0,956 0,742 0,771 0,851 0,732 0,821 0,816 0,908
11
0,943 0,831 0,825 0,852 0,846 0,817 0,917 0,934
12
0,946 0,736 0,712 0,861 0,692 0,774 0,825 0,913
13
0,933 0,838 0,806 0,862 0,839 0,754 0,915 0,936
14
15 RBF Network 0,959 0,746 0,721 0,793 0,728 0,838 0,854 0,923
16 Random Comm. 0,96 0,734 0,841 0,835 0,724 0,791 0,837 0,926
17 Random Forest 0,961 0,731 0,808 0,851 0,707 0,813
0,929
18 Rotation Forest 0,96 0,758 0,841 0,873 0,739 0,821 0,820 0,937

Bagging
cGEP-ada
C4.5
cGEP-mv

0,8

78

J. J¸edrzejowicz and P. J¸edrzejowicz

Table 6. Comparison of the precision values

no.

classiﬁer

WBC Diab. Sonar ACr. GCr Heart Hep.

Ion.

0,6

Stacking

Bayes Net
FT

Naive Bayes
SVM
Logistic

0,429 0,424 0,285 0,308 0,49 0,297 0,63 0,411
1
0,795 0,858 0,733
2 Class. via clust. 0,957 0,643 0,546 0,757
0,962 0,759 0,704 0,793 0,743 0,835 0,853 0,842
3
0,96 0,769 0,759 0,861 0,738 0,843 0,847 0,891
4
5
0,966 0,767 0,731 0,854 0,741 0,846 0,814 0,889
6 Decision Table 0,953 0,706 0,692 0,836 0,68 0,762 0,753 0,896
0,972 0,741 0,805 0,864 0,746 0,835 0,845 0,894
7
0,971 0,768 0,798 0,855 0,685 0,825 0,811 0,903
8
0,945 0,74 0,755 0,855 0,712 0,831 0,786 0,906
9 Ensemble Sel.
0,948 0,737 0,716 0,847 0,661 0,822 0,82 0,915
10 AdaBoost M1
0,956 0,741 0,781 0,853 0,73 0,822 0,844 0,909
11
0,947 0,86 0,793 0,88 0,892 0,804 0,93 0,943
12
0,946 0,735 0,713 0,861 0,687 0,776 0,825 0,915
13
0,919 0,908 0,782 0,893 0,88 0,681 0,92 0,968
14
15 RBF Network
0,96 0,747 0,729 0,806 0,726 0,838 0,852 0,924
16 Random Comm. 0,96 0,733 0,841 0,835 0,722 0,792 0,834 0,926
17 Random Forest 0,962 0,73 0,813 0,851 0,705 0,819 0,806 0,929
18 Rotation Forest 0,96 0,761 0,843 0,873 0,736 0,822 0,817 0,937

Bagging
cGEP-ada
C4.5
cGEP-mv

Table 7. Comparison of the recall values

no.

classiﬁer

WBC Diab. Sonar ACr. GCr Heart Hep.

Ion.

0,7

Stacking

Bayes Net
FT

0,655 0,651 0,534 0,555

Naive Bayes
SVM
Logistic

0,545 0,794 0,641
1
2 Class. via clust. 0,957 0,648 0,543 0,741 0,566 0,795 0,742 0,709
0,96 0,763 0,678 0,777 0,754 0,835 0,845 0,826
3
0,959 0,712 0,76 0,849 0,751 0,842 0,852 0,886
4
5
0,966 0,772 0,731 0,852 0,752 0,845 0,826 0,889
6 Decision Table 0,953 0,773 0,692 0,835 0,71 0,762 0,761 0,895
0,971 0,743 0,803 0,862 0,755 0,835 0,832 0,895
7
0,97 0,773 0,798 0,855 0,683 0,825 0,813 0,903
8
0,944 0,746 0,755 0,849 0,731 0,828 0,813 0,906
9 Ensemble Sel.
0,948 0,743 0,716 0,846 0,695 0,822 0,826 0,909
10 AdaBoost M1
0,956 0,746 0,784 0,851 0,744 0,822 0,845 0,909
11
0,938 0,804 0,859 0,826 0,806 0,83 0,9 0,924
12
0,946 0,738 0,712 0,861 0,705 0,776 0,839 0,915
13
0,948 0,779 0,832 0,832 0,802 0,844 0,91 0,907
14
15 RBF Network 0,959 0,754 0,721 0,797 0,74 0,838 0,858 0,923
16 Random Comm. 0,96
0,74 0,841 0,835 0,739 0,792 0,845 0,926
17 Random Forest 0,961 0,738 0,808 0,851 0,725 0,815 0,826 0,929
18 Rotation Forest 0,96 0,768 0,841 0,872 0,748 0,822 0,826 0,937

Bagging
cGEP-ada
C4.5
cGEP-mv

Cellular Gene Expression Programming Classiﬁer Learning

79

To evaluate more deeply the performance of cGEP-mv and cGEP-ada the
Friedman’s non-parametric test using ranks of the data has been applied. For
each of the performance measures including classiﬁcation accuracy, ROC area,
F-measure, precision and recall the following hypotheses were tested:

– Null Hypothesis H0: All of the 18 population distribution functions are

identical.

– Alternative Hypothesis H1: At least one of the populations tends to yield

larger observations than at least one of the other populations.

Analysis of the experiment results shows that in each of the considered cases the
null hypothesis should be rejected at the signiﬁcance level of 0,05. The average
Friedmans ranks for the classiﬁcation accuracies, ROC areas, F-measures, pre-
cisions and recalls are shown in Fig. 1 - 5, respectively. The highest rank was
given 1 point and the lowest - 18 points.

Fig. 1. The average Friedmans ranks for the classiﬁcation accuracy of diﬀerent
classiﬁers

80

J. J¸edrzejowicz and P. J¸edrzejowicz

Fig. 2. The average Friedmans ranks for the ROC area of diﬀerent classiﬁers

Fig. 3. The average Friedmans ranks for the F-measure of diﬀerent classiﬁers

Cellular Gene Expression Programming Classiﬁer Learning

81

Fig. 4. The average Friedmans ranks for the precision of diﬀerent classiﬁers

Fig. 5. The average Friedmans ranks for the recall of diﬀerent classiﬁers

82

J. J¸edrzejowicz and P. J¸edrzejowicz

5 Conclusions

The paper proposes an approach based on integrating gene expression program-
ming with cellular genetic programming to induce expression trees. The induced
trees are used to construct ensemble classiﬁers. Main contribution of the paper
can be summarized as follows:

– Class speciﬁc cellular GEP learning procedure is proposed and implemented
– Non-dominance relation between genes is used in the process of gene selection
– Two ensemble classiﬁers based on expression trees induced using cellular

GEP learning procedure are constructed and validated.

The resulting cellular GEP-induced ensemble classiﬁers were validated exper-
imentally using several datasets and the results were compared with those of
other well established classiﬁcation methods.

Validation experiment results allow to draw the following conclusions:

– In terms of all major performance metrics including the classiﬁcation accu-
racy, the area under the ROC curve both, F-measure precision nad recall,
both - cGEP-mv and cGEP-ada perform very well and are competitive in
comparison with a majority of other approaches,

– Both algorithms (cGEP-mv and cGEP-ada ) are consistent assuring high

quality classiﬁcation results when applied to diﬀerent datasets.

Presented experiment results conﬁrm that next generation collective compu-
tational intelligence techniques like gene expression programming and cellular
evolutionary algorithms, when applied to the ﬁeld of machine learning, can be of
help in producing excellent quality results through exploiting their collaborative
and synergetic features. The proposed family of ensemble classiﬁers constructed
from expression trees stands out as a convincing example showing eﬀectiveness
of the combinatorial eﬀort of integrating collaborative data technologies for com-
putational intelligence.

References

1. Alba, E., Dorronsoro, B.: Cellular Genetic Algorithms. Springer Science, New York

(2008)

2. Asuncion, A., Newman, D.J.: UCI Machine Learning Repository. University of
California, School of Information and Computer Science (2007), http://www.ics.
uci.edu/~mlearn/MLRepository.html

3. Bi, Y., Guan, J., Bell, D.: The combination of multiple classiﬁers using an eviden-

tional reasoning approach. Artif. Intell. 172, 1731–1751 (2008)

4. Centeno, P., Lawrence, N.D.: Optimising Kernel Parameters and Regularisation
Coeﬃcients for Non-linear Discriminant Analysis. Journal of Machine Learning
Research 7, 455–491 (2006)

5. Fawcett, T.: ROC Graphs: Notes and Practical Considerations for Researchers, HP

Labs Tech Report HPL-2003-4, Palo Alto, Ca (2003)

Cellular Gene Expression Programming Classiﬁer Learning

83

6. Ferreira, C.: Gene Expression Programming: a New Adaptive Algorithm for Solving

Problems. Complex Systems 13(2), 87–129 (2001)

7. Ferreira, C.: Gene Expression Programming. Studies in Computational Intell. 21,

337–380 (2006)

8. Freund, Y., Schapire, R.E.: Decision-theoretic generalization of on-line learning
and application to boosting. Journal of Computer and System Science 55, 119–139
(1997)

9. FT

Datasets,

http://www.grappa.univ-lille3.fr/torre/Recherche/

Experiments/Results/tables.php

10. Ishibuchi, H., Nojima, Y.: Analysis of Interpretability-accuracy Tradeoﬀ of Fuzzy
Systems by Multiobjective Fuzzy Genetics-based Machine Learning. Intern. Jour-
nal of Approximate Reasoning 44, 4–31 (2007)

11. J¸edrzejowicz, J., J¸edrzejowicz, P.: GEP-induced expression trees as weak classiﬁers.
In: Perner, P. (ed.) ICDM 2008. LNCS (LNAI), vol. 5077, pp. 129–141. Springer,
Heidelberg (2008)

12. J¸edrzejowicz, J., J¸edrzejowicz, P.: A family of GEP-induced ensemble classiﬁers.
In: Nguyen, N.T., Kowalczyk, R., Chen, S.-M. (eds.) ICCCI 2009. LNCS, vol. 5796,
pp. 641–652. Springer, Heidelberg (2009)

13. J¸edrzejowicz, J., J¸edrzejowicz, P.: Cellular GEP-induced classiﬁers. In: Pan, J.-
S., Chen, S.-M., Nguyen, N.T. (eds.) ICCCI 2010. LNCS, vol. 6421, pp. 343–352.
Springer, Heidelberg (2010)

14. Kr¸etowski, M.: A memetic algorithm for global induction of decision trees. In:
Geﬀert, V., Karhum¨aki, J., Bertoni, A., Preneel, B., N´avrat, P., Bielikov´a, M.
(eds.) SOFSEM 2008. LNCS, vol. 4910, pp. 531–540. Springer, Heidelberg (2008)
15. Polikar, R.: Ensemble Based Systems in Decision Making. IEEE Circuits and Sys-

tems Magazine 3, 22–43 (2006)

16. Schapire, R.E., Freund, Y., Bartlett, P., Lee, W.S.: Boosting the margin: A new
explanation for the eﬀectiveness of voting methods. The Annals of Statistics 26(5),
1651–1686 (1998)

17. Shafer, G.: A Mathematical Theory of Evidence. Princeton University Press,

Princeton (1976)

18. Torre, F.: Boosting Correct Least General Generalizations, Technical Report

GRApp A-0104, Grenoble (2004)

19. Weinert, W.R., Lopes, H.S.: GEPCLASS: A classiﬁcation rule discovery tool using
gene expression programming. In: Li, X., Za¨ıane, O.R., Li, Z.-h. (eds.) ADMA
2006. LNCS (LNAI), vol. 4093, pp. 871–880. Springer, Heidelberg (2006)

20. Witten, I.H., Frank, E.: Data Mining: Practical machine learning tools and tech-

niques, 2nd edn. Morgan Kaufmann, San Francisco (2005)

21. Zhou, C., Xiao, W., Tirpak, T.M., Nelson, P.C.: Evolving Accurate and Compact
Classiﬁcation Rules with Gene Expression Programming. IEEE Transactions on
Evolutionary Computation 7(6), 519–531 (2003)

A Situation-Aware Computational Trust Model
for Selecting Partners

Joana Urbano, Ana Paula Rocha, and Eug´enio Oliveira

LIACC – Laboratory for Artiﬁcial Intelligence and Computer Science
Faculdade de Engenharia da Universidade do Porto – DEI
Rua Dr. Roberto Frias, 4200-465, Porto, Portugal
{joana.urbano,arocha,eco}@fe.up.pt
http://www.fe.up.pt

Abstract. Trust estimation is a fundamental process in several multi-
agent systems domains, from social networks to electronic business sce-
narios. However, the majority of current computational trust systems
is still too simplistic and is not situation-aware, jeopardizing the accu-
racy of the predicted trustworthiness values of agents. In this paper, we
address the inclusion of context in the trust management process. We
ﬁrst overview recently proposed situation-aware trust models, all based
on the predeﬁnition of similarity measures between situations. Then, we
present our computational trust model, and we focus on Contextual Fit-
ness, a component of the model that adds a contextual dimensional to
existing trust aggregation engines. This is a dynamic and incremental
technique that extracts tendencies of behavior from the agents in eval-
uation and that does not imply the predeﬁnition of similarity measures
between contexts. Finally, we evaluate our trust model and compare it
with other trust approaches in an agent-based, open market trading sim-
ulation scenario. The results obtained show that our dynamic and incre-
mental technique outperforms the other approaches in open and dynamic
environments. By analyzing examples derived from the experiments, we
show why our technique get better results than situation-aware trust
models that are based on predeﬁned similarity measures.

Keywords: computational trust systems, dynamics of trust, situation-
aware trust, multi-agent systems.

1 Introduction

Computational trust systems are systems that collect information, such as eval-
uation of direct experiences, reputation, recommendations or certiﬁcates, about
agents (e.g. representing individuals or organizations) and that computes the
trustworthiness of these agents based on the collected information. In this doc-
ument, we envision trust as the conﬁdence that an evaluator agent has on the
capabilities and the willingness of another agent (the trustee) in fulﬁlling some
kind of task in a given context.

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 84–105, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

A Situation-Aware Computational Trust Model for Selecting Partners

85

Trust management is in these days a fundamental research topic in agent-
based and multi-agent systems, and its appliance concerns decision making pro-
cesses in almost all electronic forms of commerce and social relationship. In this
context, several trust and reputation models have been proposed to represent and
aggregate social evaluations into trustworthiness scores (see [1] for an overview).
However, the majority of these models are based on simple aggregation engines
that do not diﬀerentiate between situations and therefore use all available ev-
idences about an agent to compute its trustworthiness, independently of the
context of the current assessment, potentially jeopardizing the accuracy of the
estimated trust value.

In order to address this limitation, some models have been recently proposed
that bring situation into the trust loop [2][3][4][5][6][7]. Some of them rely on
the existence of taxonomies that allow deﬁning a situation, and all of them
use predeﬁned domain-speciﬁc similarity metrics. Our belief is that these sys-
tems are more adequate to environments where the evidences about the agents
in evaluation are abundant and where there is a relative stability concerning
the context deﬁnition. However, there are real world scenarios where these as-
sumptions are not guaranteed. For example, in e-sourcing activities performed
in open and global markets, it is expected that agents risk new partnerships
outside the embedded set on known acquaintances, which, consequently, reduces
the availability of direct evaluations of the potential partners in the several dis-
tinct contexts that can be considered. In such harsh scenarios, we need diﬀerent
and more dynamic types of trust models that are able to reasoning even when
the available evidences about the agents in evaluation are scarce, contextual and
heterogeneous.

In this paper, we address the development of trust models that are adequate
to these scenarios. First, we present our situation-aware trust model that is based
in three fundamental characteristics:

– The inclusion in the aggregation procedure of important properties of the
dynamics of trust, as addressed in research areas related to social sciences
and psychology;

– The dynamic detection of tendencies of agents’ behavior in the presence of

diﬀerent situations;

– The ability to infer the trustworthiness of agents even when the available

trust evidences are scarce.

Then, we set up a multi-agent simulation environment where textile client agents
seek for optimal deals by selecting from a range of suppliers with diﬀerent behav-
iors. We are interested in evaluating the beneﬁts of using our own trust proposal
for the selection of partners in open and global scenarios and to compare it
with other trust approaches. Also, we intend to evaluate how the diﬀerent trust
methods can support the exploration of new potential partners in such a way
that the risk associated to trading with strangers is decreased by the method.
A ﬁnal achievement of the work presented in this paper is the development of
a simulation environment that can be used to support important studies about
parochialism and trust that are being done in the social sciences area [8]

[9].

86

J. Urbano, A.P. Rocha, and E. Oliveira

This paper is structured as follows: Section 2 brieﬂy introduces situation-
aware trust and overviews the most signiﬁcant computational situation-aware
trust models existing to date. Section 3 presents our own contextual trust model,
and presents the scenario and notation used in this paper. Section 4 evaluates
our approach and compares it with other computational trust models, in the
open market scenario deﬁned. Finally, Section 5 concludes the paper and refers
future work.

2 Situation-Aware Trust

There are several deﬁnitions of trust in the literature, and most of them refer
context as a dimension to take into consideration in the trust assessment process.
For instance, in one of the earliest research on computational trust, Marsh (1994)
considers situational trust as “the amount of trust an agent has in another in a
given situation”, and gives a helpful example: “I may trust my brother to drive
me to the airport, I most certainly would not trust him to ﬂy the plane” [10].
Another well known deﬁnition of trust, from the economics area, is given by
Dasgupta, where trust reﬂects the expectation on the activities of an entity
when it reacts on a given context [11]. In the same line of thought, Dimitrakos
deﬁnes trust as a measurable belief that a given entity has on the competence
of the trustee entity in behaving in a dependably way, in a given period of time,
within a given context and relative to a speciﬁc task [12].

Therefore, the need for some kind of computational situation-aware trust
seems evident. In one hand, it is realistic to assume that not all the past ev-
idences are equally relevant to future interactions, as it is common sense that a
given entity might behave diﬀerently in diﬀerent contexts, as shown by Marsh
deﬁnition above. It is the same to say that the trust aggregator algorithm shall
not take all positive evidences concerning the car driving ability of the author’s
brother when assessing his ability to drive an airplane.

This same reasoning further extends to reputation models based on transi-
tivity graphs, much used in recommendation systems. In fact, although existing
models of reputation are generally based on the transitivity of trust, some au-
thors consider that trust is not transitive [13]. In this context, Tavakolifard (2009)
suggests a theoretically approach that incorporates a situational dimension into
graph-based reputation models [14].

There are other theoretically beneﬁts that can derive from the consideration
of context into computational trust models. One of these beneﬁts is the boot-
strapping of unanticipated situations, where missing information from a given
target agent can be inferred from similar situations (e.g. “A person trusting Bob
as a good car mechanic will not automatically trust him also in undertaking
heart surgeries (. . . ) [but] he probably could be quite good in repairing motorcy-
cles” [2]); the other is the management of newcomers, where the use of similarities
between both agents and situations can generate an approximate estimate for
the initial trustworthiness value of the newcomer. Finally, Neisse et al. consider
that the consideration of context may allow the reduction of the complexity of
management of trust relationships [7].

A Situation-Aware Computational Trust Model for Selecting Partners

87

2.1 Overview on Situation-Aware Models

Although the need for contextual trust has been identiﬁed several years ago, only
recently there started to appear practical approaches of situation-aware trust
models. However, the majority of them is based on ontologies or taxonomies and
implies the predeﬁnition of domain-based similarity measures of situations or
roles.

The ﬁrst example we analyze is deﬁned in the domain of message-based com-
munications. In this work, the authors propose to use rules based on the explicit
context of messages in order to determine the trustworthiness of these mes-
sages [15]. In order to capture the message content and the context-dependent
trust relations, the authors extend a trust ontology proposed by Golbeck et
al. [16] in order to include the notion of context-sensitivity trust in messages.
However, the authors do not address important questions, such as how the con-
text is extracted from messages and how to compute the context-sensitive factor
that allows determining the overall trustworthiness of a message.

Another example of such a model is the Context Management Framework (CMF)
model, where trust relations in one domain are used to infer trust relations in simi-
lar domains [2][14][17]. The model uses case-base reasoning techniques to estimate
trust in unanticipated situations, by retrieving the most similar cases from a case
base. In this approach, the authors use a trust-based ontology ([18]) to specify
situations and they measure the similarity between situations using a relational
similarity model based on the SimRank algorithm [19]. A major drawback of this
approach resides in the weak assumption made by this algorithm about the simi-
larity between diﬀerent objects, as even signaled by the authors ([2]) which prevent
the model to adequately scale to more complex representations of contexts.

The CMF model drinks from the collaborative ﬁltering research area that use
taxonomy-based similarity measures for recommendation purposes. There, the
similarity between users is normally derived from the items or classes of items
they tend to share (also known as co rating behavior). A recent extension on
this topic is cross-domain recommendation. In this context, a recent work [20]
proposes a model that allows users that share similar items or social connections
to provide recommendations chains on items on other domains. This model uses
Web taxonomies made available by service providers. In order to allow measuring
the similarity of users that do not have rated the same items, the model ﬁrst
computes class classiﬁcations from the individual classiﬁcations of items of the
class, and then computes the similarity between users taking into account the
resulting similarities of users in each class. This model implies, however, that
subtleties between items within classes cannot be taken into account because of
the generalization process it assumes.

The next model also uses an ontology for describing situations, or concepts (e.g.
business orders) [3]. In this approach, the expected behavior of an agent on a given
situation is represented as a conditional probability distribution function (PDF)
over the possible observations given the possible agreements. As in the previous
model, a concrete experience about a commitment can be used to update the ex-
pectation of behavior over semantically close commitments, allowing for faster

88

J. Urbano, A.P. Rocha, and E. Oliveira

bootstrapping of unanticipated situations. Although the authors state that the
PDF is initialized using background knowledge on the other agents, the model
suﬀers from the a priori information limitation of conditional probability distribu-
tions. Also, the authors do not present an evaluation of the model, which prevents
a further understanding of its potential beneﬁts.

A related approach by Hermoso and Billhardt dynamically builds a taxonomy
of organizational roles from trust information maintained by the agents, using
clustering techniques [4]. When evaluating the trustworthiness of a target agent,
the evaluator uses the direct experiences it has with the agent and weights them
according to the similarity between the role assumed by the agent in the speciﬁc
experience and the role of the current situation.

Finally, another approach in the area of social browsing [21] allows the rep-
resentation of context based on personal ontologies of Web collaborators and
provide context mapping methods.

Although the use of taxonomies and ontologies is increasing in the Web, both
in social networks and e-business activities, the main limitation associated with
the above referred models is the necessity to predeﬁne adequate similarity mea-
sures for all possible situations in assessment before such situations are even
presented to the evaluator. This is a domain speciﬁc, hard tuning process that
may be a challenge in dynamic environments with complex representations of
contexts.

A somewhat diﬀerent approach is presented in the Context Space and Ref-
erence Contexts model [5][22][23]. This approach deﬁnes the context space as a
Q-dimensional metric space, with one dimension per each represented situation
feature, and places n < Q reference contexts (either regularly or adaptively) over
the context space. There exist as many context spaces as agents in evaluation.
Then, every time a new trust evidence is generated for a given agent, the trust-
worthiness at each one of the reference contexts of the agent’s context space is
updated with the outcome of the evidence, weighted by the similarity between
the reference context and the context of the new evidence. This interesting model
is, however, also dependent on predeﬁned measures of similarity between con-
textual attributes. Also, the consideration of multiple dimensions can lead to
an exponential number of reference contexts that each evaluator needs to keep
for every agent, jeopardizing the scalability of the model to complex contextual
scenarios. Another limitation of this model is that it can only be used comple-
mentary to traditional trust systems that aggregate evidences using weighted
means approaches.

Finally, there is a related approach [6] to the previous model that diﬀerentiates
from it on the deﬁnition of the context space, where each dimension of the context
space is now a function of many context attributes, instead of one sole attribute.
However, all limitations pinpointed above for the previous model are still present
in this approach.

The situation-aware trust model we propose in this paper distinguishes from the
above models by performing online evaluation of the trust evidences, as it is able
to dynamically extract tendencies of the (probably changing over time) behavior

A Situation-Aware Computational Trust Model for Selecting Partners

89

of the trustee, on a given speciﬁc situation. This means that our approach does
not rely on a priori deﬁnition of similarity measures. It is our ﬁrm belief that such
a model is more adequate to detect subtleties between two similar contexts and
then to perform better in open and dynamic environments than the models we
overviewed above. In Section 4, we present the results of the experiments we have
performed that strongly support our belief.

3 The Proposed Trust System

We developed a trust method envisioning its use in future semi-automatic and
open business-to-business markets, taking into special consideration the exigent
requirements of such environments. Namely, we are concerned with the perfor-
mance of the method when the trust evidences available about a given agent are
scarce and heterogeneous, and when the activity of the agents under evaluation
can span through diﬀerent situations and contexts. The current implementa-
tion of our system that encompasses the proposed method is composed of two
diﬀerent components, as depicted in Figure 1:

– The aggregator component, which is responsible for aggregating the avail-
able trust evidences of an agent into a trustworthiness score for this agent.
Several trust engines that are deﬁned in the literature can be used (cf. [1]),
although we are particularly interested on engines that model the dynamics
of trust, as they appear to perform better than the traditional statistical
approaches [24][25][26];

– The Contextual Fitness component, which tunes the outcome of the ag-
gregating step by taking into consideration the speciﬁcities of the current
business opportunity and the adequacy of the agent in evaluation to the
speciﬁc situation under assessment.

The idea beyond this extension is that if the trust system detects that an agent
has some kind of handicap related to the current necessity, the overall trustwor-
thiness of the agent for this necessity will be zero; otherwise, the trustworthiness
score is the value computed by the aggregator component. One good character-
istic of this approach is that it can be used with any conventional trust aggrega-
tion engine, being it based on statistical, probabilistic or heuristic-based models.
Before we describe the Contextual Fitness component in more detail, we ﬁrst
introduce the notation and the scenario used all over this paper.

3.1 Scenario and Notation

The scenario used in this paper situates on the automation of the procurement
processes of business-to-business relations in the textile industry. Ideally, the
development of adequate agreement technologies would allow opening the space
of business opportunities, where agents would have the means and the conﬁdence
knowledge to search for good business opportunities outside their limited sphere
of breeding relations. However, the fear of risking unknown partners is one of

90

J. Urbano, A.P. Rocha, and E. Oliveira

Fig. 1. The current implementation of our trust system

the biggest barriers to trade in a truly open market environment. Taking our
subcontracting scenario in the textile industry as an example, the client part of
the relation can be deceived by the provider part in several diﬀerent ways [27]:

– A delay in delivery, which aﬀects all the supply chain;
– The quality received, as speciﬁed by aﬀordability, safety and degree of

uniqueness parameters;

– The quantity received (too much or too less);
– The violation of intellectual property rights;
– Ethical problems;
– Other problems, such as price rise and legislative changes.

Without some kind of a trust mechanism, it is reasonable to conclude that busi-
ness partners would preferentially adopt parochial environments in detriment to
more aggressive exploration of deals outside the space of already known partner
relationships. For instance, in the fashion retail industry, clients often rely on
knowledge available through textile fairs and textile agents to make the bridge
between brands and the trustable and reliable textile suppliers. However, even
with this form of trust guarantees, the space of available suppliers is relatively
small and it is strongly supported on the expected behavior of the partner, rather
than on the potential real utility of the business transaction.

In our scenario, business clients in the textile industry try to select the best
suppliers of textile fabric. For this, they announce their business needs and
wait for proposals from the suppliers. The need is announced through a call
for proposals (CFP) and concerns the delivery of some quantity of a fabric
due in some delivery time. An example of such a need is the following:
(fabric = cotton, quantity = 900000 meters, delivery time = 15 days). In this con-
text, we deﬁne at ∈ AT as the description of the need, i.e. an instance of the
space AT of all possible combinations of attribute-value pairs that describe the
need (good, product or service).

Then, after issuing the CFP, the client agent selects the best proposal based on
the evaluation of the trustworthiness of each proponent supplier, for the situation
announced in the need, taking as input contracts the suppliers have established
in the past and their respective outcome.

A Situation-Aware Computational Trust Model for Selecting Partners

91

This way, we deﬁne trustac(as) ∈ [0, 1] as the trustworthiness value of a trustee
agent as, in the eye of the evaluator agent ac, as computed by a traditional trust
aggregator engine; and adequacy trust adac(as, at) ∈ [0, 1] as a binary operator
for situation-awareness purposes, where ac ∈ AC is an agent from the set AC of
client agents and as ∈ AS is an agent from the set AS of supplier agents.

Therefore, the trustworthiness value of agent as as seen by agent ac in the

speciﬁc context at is given by the following equation:

trustac(as, at) = trustac(as) ∗ adac(as, at)

(1)

This is the same as to say that, in a given moment, an agent may be qualiﬁed
as trustworthy in a speciﬁc situation and as untrustworthy in a (maybe slightly)
diﬀerent situation.

Finally, a contractual evidence is represented by the tuple (cid:4) ac, as, at, t, o(cid:5),
where t is the timestamp of the transaction that occurred between client agent
ac and supplier agent as and o ∈ {true, f alse} is the outcome of this transaction.
Here, a true outcome means that agent as has succeeded in providing the good
in the contractual terms and a false outcome means that as has violated the
contract. Therefore, in our scenario, each supplier agent as has a history of its
past contractual evidences.

3.2 The Contextual Fitness Component

The Contextual Fitness component is based on an online, incremental and ﬂex-
ible technique of extraction of behavior tendencies that we have developed. We
have been testing diﬀerent methods for extracting these tendencies from the his-
torical set of agents’ evidences, such as the use of the increase in frequency metric,
as explained in [28]. Our current version, introduced in [29], uses the information
gain metric. This is a metric used in the machine learning area (such as in the
simple decision tree learning algorithm ID3 [30]) for classiﬁcation purposes. It is
typically used as an oﬄine process, implying that the training and testing phases
occur before the actual classiﬁcation of new instances is performed.

The information gain metric is based on the entropy concept of information

theory, and is deﬁned as following:

Gain(S, A) ≡ Entropy(S) −

(cid:2)

v ∈ V alues(A)

|sv|
|S|

Entropy(sv),

(2)

where Gain(S, A) is the information gain of attribute A relative to a collection
of samples S, V alues(A) is the set of all possible values for attribute A, and sv
is the subset of S for which attribute A has value v [30].

In our approach, we use this metric in a novel way, as it is used to dynamically
learn a decision tree from the history of evidences of a given agent as, every time
a client agent needs to verify the adequacy of as proposal to its current business
need. In fact, we use all the evidences available about the supplier to build the
decision tree, which normally consists of a dataset with some dozens of evidences,
if that much. This means that no training or testing phases are performed. After

92

J. Urbano, A.P. Rocha, and E. Oliveira

that, the failure tendencies of the agent in evaluation are extracted from the rules
pointing to false outcomes. Figure 2 depicts a decision tree that was learned for
a given supplier in a speciﬁc experiment we have run (we use the Weka API [31]
in our simulations).

Fig. 2. Decision tree generated in our simulations

Concerning the tree above, our algorithm was able to identify that, at the
time of this particular assessment, the supplier showed the failure tendencies
(fabric = cotton, ∗, dtime = low) and (fabric = voile, ∗, ∗). Therefore, the trust-
worthiness value trustac(as, at) of agent as, as given by Equation 1, would be
zero if situation at matched any of the failure tendencies derived from the learned
decision tree. Otherwise, the trustworthiness value of the target agent for the con-
sidered situation would be given by the trustac(as) component of Equation 1.
For now, we are only exploring the false branch of the generated trees, which
means that currently Contextual Fitness is a binary operator. However, we leave
for future work the extraction of the true and null branches of the trees, in order
to further distinguish between positive tendencies and uncertainty.

4 Experiments

We set up a multi-agent simulation scenario where business clients in the tex-
tile industry try to select the best suppliers of textile fabric, i.e. the ones that
would maximize the utility of the clients. At every round of the simulation, each
client issues a call for proposals (CFP) specifying a business need. This need is
established randomly for each agent at setup time and is an instance at ∈ AT ,
as described in section 3.1. The clients keep their needs constant in all the ex-
periment rounds. Moreover, all values of possible quantities and delivery times
are fuzziﬁed in the categorical values depicted in Table 1.

A Situation-Aware Computational Trust Model for Selecting Partners

93

After issuing the CFP, every client selects the more adequate proposal for the
current need based only on the trustworthiness value of all the proposals received,
as computed by the trust model used by the client. In these experiments, we use
three diﬀerent trust models, including our situation-aware approach, in order to
evaluate and compare the ability of each model in supporting better selection
decisions.

Moreover, most of the suppliers that exist in our market have diﬀerent hand-
icaps on performing some particular aspect of a business transaction. For exam-
ple, some suppliers tend to fail to deliver fabric in short delivery times, while
others might fail to deliver high quantities of any fabric type. The aim of these
experiments is to evaluate how eﬀective are diﬀerent trust models and corre-
spondent aggregation techniques in detecting and acting upon these handicaps,
in order to better assist the partners’ selection decision. It is assumed that every
supplier is able to provide any diﬀerent type of fabric.

In this paper, we run the experiments with three diﬀerent populations of
suppliers, as described in the following sections. In the next section, we describe
the generic conﬁguration common to all the experiments.

4.1 Generic Conﬁguration

Table 1 presents the conﬁguration parameters that are common to all experi-
ments.

Table 1. Conﬁguration of the experiments

Parameter
Fabrics
Quantities
Delivery Time
# buyers
# of sellers
Seller stocks
Types of sellers

# rounds
# runs per experiment

Value
Chiﬀon, Cotton, Voile
Low, Medium, High
Low, Medium, Big
20
50
4 contracts per round
Uniform distribution over the types considered
in population (described later on)
60
15

Trust Models Evaluated. This section introduces the trust models evalu-
ated in these experiments. The ﬁrst model is the SA approach, which represents
SinAlpha [25], a traditional, situation-less trust aggregation system that we have
developed which uses properties of the dynamics of trust. In previous work [26],
we thorough compared SinAlpha to a traditional statistical aggregation engine
that uses weighted means by recency and we have shown that SinAlpha out-
performs this model. In the present paper, we use the SA model in order to
compare the behavior of both non situation and situation-aware approaches in
open contextual environments.

94

J. Urbano, A.P. Rocha, and E. Oliveira

The second model is the CS approach [5][22][23], which goes one step fur-
ther traditional trust models by considering contextual aspects of the business
in assessment. As we mentioned before in Section 2.1, it is a situation-aware
technique that deﬁnes a context space as a multidimensional metric space with
one dimension per each represented situation feature. It is able to estimate the
trustworthiness values of agents in unanticipated situations using the similarity
between diﬀerent situations. We chose this approach to represent situation-aware
trust models that use domain speciﬁc, predeﬁned similarity metrics to predict
unanticipated situations.

Concerning our implementation of this model in current experiments, we
placed the reference contexts regularly over the combinations of all possible
values of the contractual attributes. The distance function we used for attribute
fabric is given in Equation 3. As can be observed, the distance is minimum (zero)
if both contexts c1 and c2 have the same fabric and maximum (one) otherwise.

df abric(c1, c2) =

(cid:3)

0, if f abric1 = f abric2,
1, if f abric1 (cid:7)= f abric2.

(3)

For the remaining attributes considered in the experiments (quantity and deliv-
ery time), the distance function is given in Equation 4.

dattr(c1, c2) = |ln(attr1) − ln(attr2)|.

(4)

In the equation above, considering ﬁrst the attribute quantity, attri takes the
value of 1, 3 or 5, depending on the value of the quantity is low, medium or high,
respectively. In the same way, for attribute delivery time, attri takes the value
of 1, 3 or 5 for values of low, medium or big. The total distance between the two
contexts is a weighted means of the three distances calculated above, with all
dimensions equally weighted. Finally, the weight used to evaluate the relevance
of a context c1 accordingly to its similarity with context c2 is given in Equation
5. All the remaining formulas needed to compute the trustworthiness scores of
agents were implemented accordingly to one of the authors’ paper [5].

wi = e−d(c1,c2).

(5)

The last model to be evaluated is CF, our trust model that uses the Contextual
Fitness technique described in section 3. In the experiments, we used SA as the
aggregator component of the trust system (Figure 1). As with happens with the
CS approach deﬁned in the previous point, CF is a situation-aware trust model.
It was designed to ﬁt well to non parochial open market scenarios, where the
available trust evidences for a particular partner agent might be scarce.

Populations of Suppliers. Table 1 characterizes the diﬀerent types of suppli-
ers used in the experiments.

All suppliers used in the experiments, excepting RBad agents, have a given
handicap related to one or more contractual dimensions. For example, a supplier
initialized with the HQT behavior (standing for ‘Handicap in Quantity’) has a

A Situation-Aware Computational Trust Model for Selecting Partners

95

Table 2. Characterization of the populations of suppliers

Supplier
HFab, HQt, HDt, HFabQt,
HFabDt, HQtDt
I-HFab, I-HQt, I-HDt,
I-HFabQt, I-HFabDt, I-HQtDt
RBad

Prob. Success PopA PopB PopC
0.05 (handicap)
0.95 (otherwise)

100% 66.7%

100%

0.50

33.3%

handicap in providing high quantities of any fabric; this way, if it is selected to a
business transaction that involves the delivery of high quantities of fabric, it has
a probability of 95% of failing the contract. In any other transaction that the
supplier is involved, it has a probability of 5% of failing the contract. Besides
HQT, we used ﬁve other types of behavior that represent ﬁve other diﬀerent
types of handicap: on a given fabric (HFAB), on low delivery times (HDT ), on
high quantities of a given fabric (HFABQT ), on low delivery times for a given
fabric (HFABDT ), and on high quantities to be delivered in low delivery times
(HQTDT ). As happens in the example before, a supplier has a probability of
95% of violating a contract if the current CFP matches the supplier’s handicap,
and 95% of probability of succeeding the contract otherwise.

Handicapped suppliers with name starting with ‘I-’ are similar to the hand-
icapped suppliers just described, excepting the fact that, with a probability of
66.6%, they change their handicap when they reach half of the total number of
the rounds.

Finally, suppliers of type RBad have a probability of failing a contract of 50%,

independently of the context of the contract established with the client.

Evaluation Metrics. We use three diﬀerent metrics in order to evaluate how
client agents tend to behave in terms of selection of partners – and how good is
their decision on that – when using each one of the trust approaches in evalua-
tion in scenarios that might involve scarcity of trust evidences. The ﬁrst metric
is the average total utility got by all clients in all rounds, given by the ratio of
the number of successful contracts got by all clients in one round over the total
number of contracts established in the round, averaged over all rounds of the
experiments. The second metric is the average utility per round, which measures
the same ratio but on a per round basis. Finally, the third metric is the average
number of diﬀerent suppliers per round, which measures how many distinct sup-
pliers are selected by all the negotiating clients at every round, averaged over all
rounds of the experiments.

4.2 Experiments with Population A

We started our experiments with a population of distinct handicapped suppli-
ers, as can be observed from Table 2. These suppliers normally tend to fail in
very speciﬁc situations (e.g. low delivery times), but perform well in all other

96

J. Urbano, A.P. Rocha, and E. Oliveira

situations. Therefore, a good trust model should be able to detect the situations
where these agents fail and to prevent their selection (only) in these speciﬁc
situations.

Results. Figure 3 shows the average utility achieved by all clients in all rounds,
with the results of population A being presented in the leftmost plot.

Fig. 3. Average total utility for populations A, B and C

As can be observed from the graph, both situation-aware approaches out-
perform SA in population A: SA fulﬁls in average 83.95% of the established
contracts (with standard deviation of 2.87%), where CS succeeds in 86.01% of
the contracts (sd. 4.73%) and CF gets the best results by succeeding in 90.57%
of the contracts (sd. 1.34%).

The average utility per round and the average number of diﬀerent suppliers
selected per round are presented in Figure 4. As can be seen at the right graph,
clients that use the CF approach start, since the ﬁrst rounds, exploring a larger
number of diﬀerent suppliers than clients that use the other approaches, and they
keep showing this behavior all over the rounds. The described behavior of the
trust approaches seems to be related with the utility that clients achieve using
these approaches, as suggested in the Figure (left ). We observe that the most
exploratory approach, CF, is the one that gets higher utility, at every round.

Another important result obtained with CF is that, after some quick learning
at the ﬁrst rounds, the number of succeeded contracts with this method is very
close to the maximum of 19 (out of possible 20) contracts that can succeed per
round, i.e. to the 95% probabilistic limit imposed in population A.

4.3 Experiments with Population B

In the second set of experiments, we wanted to verify if the promising good re-
sults of the CF model would maintain in an environment with fewer trustworthy
suppliers. Therefore, we introduced population B, where one third of the avail-
able suppliers have erratic, non contextual behavior, succeeding only 50% of the
contracts they enter, irrespective of the context of the contract (cf. Table 2).

A Situation-Aware Computational Trust Model for Selecting Partners

97

Fig. 4. Results per round for Population A

Fig. 5. Results per round for Population B

Fig. 6. Results per round for Population C

98

J. Urbano, A.P. Rocha, and E. Oliveira

Results. Figure 3 (central plot ) presents the results for population B concerning
the average total utility achieved by the trust models in evaluation. As can be
observed, there is a general decrease in utility for all approaches when compared
to population A, as it would be expected, once the set of potential trustworthy
suppliers is reduced in one third. In these experiments, SA clients succeeded in
81.08% of the contracts (sd. 2.03%), while CS was successful 80.73% of the times
(sd. 4.38%) and CF succeeded 87.38% of the times (sd. 2.15%). In these experi-
ments, the CS approach was signiﬁcantly more penalized by the introduction of
the RBad suppliers than the other two approaches, and its performance was as
low as the performance of the situation-less approach.

Figure 5 plots the average utility per round (left ) and the average number
of diﬀerent suppliers selected per round (right ) for the three trust models in
evaluation, for population B. The eﬀect of introducing the RBad suppliers is
visible in the very ﬁrst rounds of the experiments, with all trust approaches
obtaining less utility than in similar rounds of the experiments with population
A. However, as happened in population A, we also observe here that the more
exploratory behavior of CF allows clients using this approach to achieve higher
utility associated with the choice of suppliers.

4.4 Experiments with Population C

In the last set of experiments, we wanted to evaluate how each trust model in
evaluation reacts to a dynamic change of behavior in the suppliers’ population.
This way, we used the handicapped suppliers of population A, but they have
now a 66.6% chance of changing their handicap at round 30 (half of the rounds
considered in the experiments).

Results. The results for population C are shown in Figure 3 (right ) and Figure
6. SA got 80.78% (sd. 4.23%) of average total utility and was the approach
that had less suﬀered from the change in handicaps, as compared to the results
obtained with population A. CS got 81.66% (sd. 2.63%) of utility and it was the
approach more penalized by the reversal in the behavior of suppliers. Finally,
CF still outperforms the other two approaches, obtaining 86.93% (sd. 2.32%) of
utility, but it was slightly more penalized in relative terms by the change of the
behavior of the suppliers than the traditional approach.

4.5 Discussion

We start the discussion of the results analyzing the relation between the average
number of diﬀerent suppliers selected per round and the average utility achieved
per round, for each trust model evaluated. At a ﬁrst sight, we could expect that
an approach that explores more partners in the scenario described would have
a smaller number of succeed contracts, at least in the ﬁrst rounds of suppliers’
exploration, where the partners are rather unknown. However, the results show
that the CF approach does not perform worse than the remaining representa-
tive approaches at this ﬁrst exploration phase and performs signiﬁcantly better

A Situation-Aware Computational Trust Model for Selecting Partners

99

than the others in the remaining steps of the experiments. This happens due
to the CF capability to extracting tendencies of behavior even in the presence
of a reduced number of available trust evidences, and to its capacity of doing
that in an incremental and dynamic way. This way, when a client makes a bad
decision concerning the exploration of a new supplier, the consideration of this
new evidence (and corresponding false outcome) in a subsequent assessment will
update the extracted tendency of failure of the supplier and approximate it to
the true handicap of the supplier.

On the contrary, the SA approach tends to select the agents that have the
highest values of trustworthiness until that date. As handicapped suppliers have
the same probability of succeeding outside the context of their handicap, there is
a strong chance that the ﬁrst partners to be selected are the ones that incremen-
tally increase their trustworthiness in the eye of the evaluator. This parochial
strategy results in the undesirable behavior of keep choosing the same suppliers
that occasionally fail the contracts for which they have a handicap for the cur-
rent CFP, not giving a chance to explore other suppliers. In a way, this reﬂects
what succeeds is real life subcontracting in the textile industry.

Concerning the situation-aware CS approach, we observe that it sensitively
outperforms the SA approach in populations where all suppliers have some sort
of handicap (A and C). This is due to the fact that the CS client reasons based
not only on the global trustworthiness of the agent in assessment, but also on the
behavior of the supplier in the context of current CFP. On the other hand, the
introduction of one third of suppliers that fulﬁll or violate contracts regardless
of the context of those contracts appear to reduce the eﬀectiveness of this trust
model based on reference contexts. Moreover, we can see from Figures 4, 5 and
6 that CS also behaves in a conservative way when selecting new partners, being
outperformed by CF in terms of utility since the ﬁrst rounds of the simulation.
This is due to the fact that, although CS is a situation-aware technique, it
functions in a rather diﬀerent way than CF. In order to better understand the
diﬀerences between CS and CF, we present next two examples taken from the
experiments we have run.

In the ﬁrst example we use the past contractual evidences of supplier as as
depicted in Table 3. For the sake of readability, only the at and the o elements
of the contractual evidence tuple (cf. Section 3.1) are presented in the table.

Table 3. Contractual evidences of supplier as (simpliﬁed)

evd #
1
2
3
4
5
6
7

at

o

chiﬀon, low, low

voile, low, medium true
true
chiﬀon, high, medium false
voile, medium, medium true
true
true
true

cotton, low, low
cotton, medium, big
voile, low, low

100

J. Urbano, A.P. Rocha, and E. Oliveira

Now, suppose the current business need of a client is the instance atx :
(fabric = chiﬀon, quantity = high, dtime = medium), and that the client needs
to evaluate the proposal made by as. Using the CS approach, we verify that the
context space of as is composed of 27 (33) reference contexts, and only seven of
them directly correspond to the contexts of the past contractual evidences of the
agent in evaluation. Let us also name the reference context corresponding to atx
as rcx. Processing the ﬁrst two evidences, they are located at distances d1,x and
d2,x from rcx, and then rcx is updated one evidence at a time with the value
of its outcome (true) weighted by a function of the distance, as given in Equa-
tion 5. This means that the trustworthiness of the supplier at rcx is increased
proportionally to the similarity between the reference context and the context
of the evidence. The third evidence coincides with atx and therefore the weight
wx of the evidence is maximum for rcx, lowering the trustworthiness value of as
at rcx in a signiﬁcant way as the outcome of this evidence is false. Finally, the
processing of the last four evidences of the supplier, all positive, raise again the
trustworthiness value at rcx, even if attenuated by the distance of the context
of each evidence to the context of rcx. However, due to the scarcity of evidences
about supplier as, its ﬁnal trustworthiness score (strongly supported by the rcx
value) is still positive, and therefore bigger than the trustworthiness values of
all other suppliers that have not yet been explored. This explains why, in these
conditions, the approach has a tendency to select, from the set of the more ﬁtted
suppliers, the ones that have been involved in more contracts to date, acting in
a rather parochial way. From our analysis, we can conclude that the interesting
characteristic of bootstrapping of the CS approach can also be somewhat dis-
appointing in open and dynamic environments where the available evidences for
every agent can be scarce.

Now, let us look how our CF approach would behave in the same situation of
example number one. Taking all available evidences of supplier as as depicted in
Table 3, the Contextual Fitness technique would be able to extract the failure
tendency (∗, quantity = high, ∗). Applying Equation 1, the global trustworthi-
ness of supplier as would be zero for current need atx, as a failure match was
detected, which means that the chances of this supplier being selected for current
CFP would be low, allowing for the selection of a more adequate proposal, or
even the exploration of a new partner.

At this point, it is necessary to say that a match between a supplier’s handicap
and the current situation in assessment does not exclude the supplier from the
selection process, it just lowers it trustworthiness to zero. In the absence of better
alternatives, the supplier can always be selected by the client to do business
together.

We are now in conditions to analyze the second example. Table 4 illustrates an
excerpt of the past contractual evidences of supplier as obtained from another set
of experiments we have run using the CS model. In these experiments, supplier as
is handicapped on low delivery times, which means that it has a high probability
of failure in satisfying any (∗, ∗, dtime = low) need.

A Situation-Aware Computational Trust Model for Selecting Partners

101

Table 4. Contractual evidences of supplier as (simpliﬁed)

evd #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

voile, high, low

chiﬀon, high, big

at
voile, medium, big
chiﬀon, high, big
cotton, low, low

o
true
true
false
cotton, medium, big true
true
cotton, high, medium false
false
voile, medium, low false
chiﬀon, medium, big true
true
true
true
false
true
false

voile, low, big
chiﬀon, high, big
voile, medium, big
chiﬀon, low, low
voile, medium, big
voile, high, low

As can be observed from the table above, supplier as keeps being selected by
clients that use the CS approach for business transactions for which it is not
ﬁtted due to its handicap on low delivery times. The problem here concerns the
use of predeﬁned similarity distances amongst contexts by the CS approach.

For instance, let us imagine that there is a new contractual evidence with
at16 : (fabric = cotton, quantity = low , dtime = medium) and o16 = true; also,
let us focus on two speciﬁc reference contexts: rcy, which matches aty : (fabric =
cotton, quantity = low , dtime = low ), and rcz, corresponding to atz : (fabric =
voile, quantity = low , dtime = medium). Using the values considered in Section
4 and equations 3 and 4, we verify that at16 is close enough from the reference
context rcy and consequently the trustworthiness of the supplier at rcy would
increase in a signiﬁcant way with the consideration of this new evidence, regard-
less its handicap on low delivery times. On the other hand, the same new true
evidence would increase the reference context rcz in a less signiﬁcant way, even
though it corresponds to a context for which the supplier does not present a
handicap. Figure 7 illustrates this scenario.

This example shows the limitations associated to situation-aware trust models
that rely on predeﬁned measures of similarity in deﬁning how similar or diﬀerent
two contexts must be. More concretely, an agent that shows a good behavior in a
context might fail in a very similar context and succeed in more distant contexts.
Our study of the CS model in the proposed scenario gives us the strong belief
that, even dedicating a team of experts to tune the distance functions, the use of
predeﬁned similarity functions, even those based on taxonomy-based similarity,
can fail in adequately detecting the contextual subtleties exposed in this last
example. Moreover, in the speciﬁc case of the CS approach, this hard tuning
eﬀort can be even compromised with the addition of more contextual dimensions.

102

J. Urbano, A.P. Rocha, and E. Oliveira

Fig. 7. Distances between a new evidence and two distinct reference contexts

For the sake of comparison, the application of our CF approach to the same
scenario (cf. Table 3) after the third evidence would generate the tendency
(fabric = cotton, ∗, ∗). In this case, CF would not be able to detect the true
handicap of the supplier with the three available evidences and would even
lower the probability of the supplier being selected to any contract involving
cotton, which does not integrate its handicap. Using CF after the sixth evi-
dence, our trust model would generate the tendencies (∗, ∗, dtime = low) and
(∗, ∗, dtime = medium). In one hand, the CF client would have a high proba-
bility of wrongly missing the opportunity of transacting with this supplier in
contracts stipulating medium delivery times. On the other hand, it would also
have a high probability of not choosing the supplier in transactions that in-
volve low delivery times (the supplier’s handicap), avoiding all the unsuccessful
contracts that derived from the choices done by the CS clients.

In this last example we observed that CF can be sometimes too restrictive,
by overﬁtting the existing evidences. For instance, with only six evidences, the
trust approach detects the true handicap of the supplier but adds a new, nonex-
istent failure tendency concerning medium quantities. We used population B in
order to see if this characteristic would prevent the CF approach of doing good
deals. By adding one third of bad suppliers, the choice space of the trust ap-
proaches reduced substantially and the utility of CF clients could be seriously
jeopardized due to this overﬁtting-based generation of failure tendencies. How-
ever, the results obtained have shown that CF was less penalized than CS in this
harsh scenario. Once again, the ability of the approach in dynamically rectifying
the extracted tendencies every time there is a new evidence has shown to be a
positive characteristic of the approach.

Finally, there are cases where the CF approach is not able to extract any failure
tendency. This happens, for example, in the presence of RBad suppliers, which
have quite an erratic and context less behavior. In these cases, our trust approach
assesses the trustworthiness of the agent in evaluation taking into consideration
only the value computed by the aggregator component (Equation 1). In the
experiments, we used the same aggregator as the SA approach, which embeds
the asymmetry property that confers more strength to negative outcomes and
less strength to positive outcomes. Although both CF and SA performed better
than CS in the presence of RBad suppliers, we need further work in order to

A Situation-Aware Computational Trust Model for Selecting Partners

103

support our belief about the beneﬁts of separating the aggregation part from the
situational part of trust models.

5 Conclusions and Future Work

In this paper, we stated our strong belief that open and dynamic environments,
such as global marketplaces where business agents risk new partnership seek-
ing to increase their proﬁt, need robust and situation-aware trust systems that
better assist the selection of partners’ decision. Then, we presented Contextual
Fitness, our innovative situation-aware technique that can be used with any trust
aggregation system and that is based on the dynamic extraction of tendencies
of behavior of the agents in assessment. This is a diﬀerent approach from the
existing situation-aware trust models that rely on the predeﬁnition of distance
metrics to evaluate the similarity between contexts. We evaluated our approach
and compared it with both a situation-less and a situation-aware approach that
predeﬁnes the notion of similarity between contexts. The results have shown
that our approach is more adequate than the other two in supporting the pro-
cess of selection of partners when the candidate partners present some charac-
teristic behavior (even if the behavior changes at some point of the agents’ life)
and when the evidences available about them are scarce. The results have also
shown that the capacity of CF in rapidly correcting a bad decision supported by
the incremental extraction of behavior tendencies allows the agents to be more
exploratory without jeopardizing their overall utility.

As future work, we intend to further develop the method for extraction of
behavior tendencies in order to allow the use of heterogeneous trust evidences.
We also intend to further test the trust approach with diﬀerent populations and
diﬀerent number of contextual dimensions.

Acknowledgments. This research is funded by FCT (Funda¸c˜ao para a Ciˆencia
e a Tecnologia) project PTDC/EIA-EIA/104420/2008. The ﬁrst author enjoys
a PhD grant with reference SFRH/BD/39070/2007 from FCT.

References

1. Sabater, J., Paolucci, M.: On Representation and Aggregation of Social Evalua-
tions, in Computational Trust and Reputation Models. Int. J. Approx. Reasoning
(2007)

2. Tavakolifard, M.: Situation-aware Trust Management, pp. 413–416 (2009)
3. Fabregues, A., Madrenas-Ciurana, J.: SRM: a tool for supplier performance. In:

AAMAS 2009, pp. 1375–1376 (2009)

4. Hermoso, R., Billhardt, H., Ossowski, S.: Dynamic evolution of role taxonomies
through multidimensional clustering in multiagent organizations. In: Yang, J.-J.,
Yokoo, M., Ito, T., Jin, Z., Scerri, P. (eds.) PRIMA 2009. LNCS, vol. 5925, pp.
587–594. Springer, Heidelberg (2009)

104

J. Urbano, A.P. Rocha, and E. Oliveira

5. Rehak, M., Gregor, M., Pechoucek, M.: Multidimensional context representations
for situational trust. In: DIS 2006: Proceedings of IEEE Workshop on Distributed
Intelligent Systems: Collective Intelligence and Its Applications, pp. 315–320, 383–
388 (2006)

6. Nguyen, C., Camp, O.: Using Context Information to Improve Computation of
Trust in Ad Hoc Networks. In: 2008 IEEE International Conference on Wireless &
Mobile Computing, Networking & Communication (2008)

7. Neisse, R., Wegdam, M., van Sinderen, M., Lenzini, G.: Trust management model
and architecture for context-aware service platforms. In: Chung, S. (ed.) OTM
2007, Part II. LNCS, vol. 4804, pp. 1803–1820. Springer, Heidelberg (2007)

8. Stolle, D.: In Trust in Society. In: Cook, K.S. (ed.) Russell Sage Foundation, pp.

202–244 (2001)

9. Macy, M.W., Sato, Y.: Trust, Cooperation, and Market Formation in the U.S. and
Japan. Proceedings of the National Academy of Sciences of the United States of
America 99(10)(suppl. 3) , 7214–7220 (2002)

10. Marsh, S.P.: Formalising Trust as a Computational Concept. PhD Thesis, Univer-

sity of Stirling (1994)

11. Dasgupta, P.: Trust as a Commodity. In: Gambeta, D. (ed.) Making and Breaking

Cooperative Relations, Basil Blackwell (1990)

12. Dimitrakos, T.: System Models, e-Risk and e-Trust. Towards Bridging the Gap?
In: Towards the E-Society: E-Business, E-Commerce, and E-Government, Kluwer,
Dordrecht (2001)

13. Christianson, B., Harbison, W.S.: Why isn’t trust transitive? In: Proceedings of the

International Workshop on Security Protocols, London, UK, pp. 171–176 (1997)

14. Tavakolifard, M., Herrmann, P., Ozturk, P.: Analogical trust reasoning. In: Trust

Management III, ch. 10, pp. 149–163 (2009)

15. Toivonen, S., Denker, G.: The Impact of Context on the Trustworthiness of Com-
munication: An Ontological Approach. In: Proceedings of the ISWC Workshop on
Trust, Security, and Reputation on the Semantic Web (2004)

16. Golbeck, J., Parsia, B., Hendler, J.: Trust networks on the semantic web. In: Klusch,
M., Omicini, A., Ossowski, S., Laamanen, H. (eds.) CIA 2003. LNCS (LNAI),
vol. 2782, pp. 238–249. Springer, Heidelberg (2003)

17. Tavakolifard, M., Knapskog, S.J., Herrmann, P.: Trust transferability among simi-
lar contexts. In: 4th ACM Symposium on QoS and Security for Wireless and Mobile
Networks, New York, USA, pp. 91–97 (2008)

18. Strang, T., Linnhoﬀ-Popien, C., Frank, K.: CoOL: A context ontology language to
enable contextual interoperability. In: Stefani, J.-B., Demeure, I., Zhang, J. (eds.)
DAIS 2003. LNCS, vol. 2893, pp. 236–247. Springer, Heidelberg (2003)

19. Jeh, G., Widom, J.: SimRank: a measure of structural-context similarity. In: Eighth
ACM SIGKDD International Conference on Knowledge Discovery and Data Min-
ing, pp. 538–543. ACM Press, New York (2002)

20. Nakatsuji, M., Fujiwara, Y., Tanaka, A., Uchiyama, T., Ishida, T.: Recommenda-
tions Over Domain Speciﬁc User Graphs. In: 19th European Conference on Artiﬁ-
cial Intelligence (ECAI 2010), Lisbon, Portugal (2010)

21. Jung, J.J.: Ontology-based context synchronization for ad hoc social collaborations.

Knowledge-Based Systems 21(7), 573–580 (2008)

22. Reh´ak, M., Pˇechouˇcek, M.: Trust modeling with context representation and gen-
eralized identities. In: Klusch, M., Hindriks, K.V., Papazoglou, M.P., Sterling, L.
(eds.) CIA 2007. LNCS (LNAI), vol. 4676, pp. 298–312. Springer, Heidelberg (2007)

A Situation-Aware Computational Trust Model for Selecting Partners

105

23. Reh´ak, M., Pˇechouˇcek, M., Grill, M., Bartos, K.: Trust-based classiﬁer combination
for network anomaly detection. In: Klusch, M., Pˇechouˇcek, M., Polleres, A. (eds.)
CIA 2008. LNCS (LNAI), vol. 5180, pp. 116–130. Springer, Heidelberg (2008)
24. Jonker, C.M., Treur, J.: Formal analysis of models for the dynamics of trust
based on experiences. In: Garijo, F.J., Boman, M. (eds.) MAAMAW 1999. LNCS,
vol. 1647, pp. 221–231. Springer, Heidelberg (1999)

25. Urbano, J., Rocha, A.P., Oliveira, E.: Computing conﬁdence values: Does trust
dynamics matter? In: Lopes, L.S., Lau, N., Mariano, P., Rocha, L.M. (eds.) EPIA
2009. LNCS, vol. 5816, pp. 520–531. Springer, Heidelberg (2009)

26. Danek, A., Urbano, J., Rocha, A.P., Oliveira, E.: Engaging the dynamics of trust in
computational trust and reputation systems. In: J (cid:2)edrzejowicz, P., Nguyen, N.T.,
Howlet, R.J., Jain, L.C. (eds.) KES-AMSTA 2010. LNCS, vol. 6070, pp. 22–31.
Springer, Heidelberg (2010)

27. Thurman, R.: Purchasing contracts in the textile industry: how can purchasing
contracts decrease subcontracting risks and reclamations in a textile industry com-
pany?, Tampereen ammattikorkeakoulu, Thesis Report (2007)

28. Urbano, J., Rocha, A.P., Oliveira, E.: Trust estimation using contextual ﬁtness. In:
J (cid:2)edrzejowicz, P., Nguyen, N.T., Howlet, R.J., Jain, L.C. (eds.) KES-AMSTA 2010.
LNCS, vol. 6070, pp. 42–51. Springer, Heidelberg (2010)

29. Urbano, J., Rocha, A.P., Oliveira, E.: Trustworthiness Tendency Incremental Ex-
traction Using Information Gain. In: IEEE/WIC/ACM International Conference
on Web Intelligence and Intelligent Agent Technology, wi-iat 2010, vol. 2, pp. 411–
414 (2010)

30. Quinlan, J.R.: Induction of Decision Trees. Machine Learning 1(1), 81–106 (1986)
31. Hall, M., Frank, E., Holmes, G., Pfahringer, B., Reutemann, P., Witten, I.H.: The
WEKA Data Mining Software: An Update. SIGKDD Explorations 11(1) (2009)

Using the Perseus System
for Modelling Epistemic Interactions

Magdalena Kacprzak1, Piotr Kulicki2, Robert Trypuz2,
Katarzyna Budzynska3, Pawe(cid:2)l Garbacz2, Marek Lechniak2,
and Pawe(cid:2)l Rembelski1

1 Polish-Japanese Institute of Information Technology, Warsaw, Poland
2 John Paul II Catholic University of Lublin, Poland
3 Cardinal Stefan Wyszynski University in Warsaw, Poland
http://www.l3g.pl, http://perseus.ovh.org/

Abstract. The aim of the paper is to apply the software tool Perseus
to modelling epistemic interactions. We focus on the issue of agents’
knowledge acquisition, using a logical puzzle in which agents increase
their knowledge about the hats they wear. In the paper, ﬁrst we present
a model of epistemic interactions, which allows us to resolve the hats
puzzle. Then, the model is used to build the problem’s speciﬁcation for
the Perseus system. Finally, we show how the hats puzzle can be solved
and analysed in a detailed way with the use of a parametric veriﬁcation
method executed by Perseus.

Keywords: knowledge representation, dynamic epistemic logic, multi
agent systems.

1 Introduction

One of the most important issues when considering agents and multi agent sys-
tems is an agent’s state of belief and its dynamics in interaction with other
agents. The research on the subject was conducted within dynamic doxastic
logic, belief revision theory, public announcement logic or argumentation theory
(see for example [1,2,3,4]). In [5,6,7], a general model of epistemic interactions
is built, as one of the options, and applied to the example of logical puzzles
concerning agents knowledge. In [8,9], on the other hand, a theoretical model
for persuasive actions of arbitrary agents and its implementation in the Perseus
system is presented.

The paper is an extended version of [10]. The new elements occurring in the
present paper are: the study of the transition from the ontological description
of the scenario to the epistemological facts concerning agents possible states
of beliefs, presentation of the architecture of the ﬁnal puzzle solving system,
additional examples, and some more information about other works related to
our results. The main subject of it is to connect those two approaches. The
fundament, that makes such a connection possible, is a claim that the formal
structure of the process of persuasion is similar to the structure of information

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 106–123, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

Using the Perseus System for Modelling Epistemic Interactions

107

acquisition of an agent, towards whom the persuasion is presented (see e.g. [11]
for the justiﬁcation of the relation between the processes of persuasion and beliefs
change). It enables to use the Perseus system to analyse not only persuasion,
but also other epistemic interactions, including knowledge acquisition from an
other agent’s behaviour.

While building the general model of epistemic interactions (especially in [7])
we explored the details of founding epistemic attitudes of agents on their on-
tological features. We introduced the notion of epistemic capacities of an agent
understood as the feature of an agent deﬁning the kind of information that he
or she have access to. As a result, we construct epistemic attitudes (the way
in which agents incorporate information) on the foundation of their epistemic
capacities. Applying these results in the context of the Perseus system we obtain
a possibility of automated generation of its input model. Usually such a model
have to be created explicitelly and manually which is a very laborous process
and that fact strongly limits the possibility of application of Perseus and other
model veriﬁers to the real life problems.

We test our ideas on logical puzzles following B. Russell [12], who wrote that:
“A logical theory may be tested by its capacity for dealing with puzzles, and it is a
wholesome plan, in thinking about logic, to stock the mind with as many puzzles
as possible, since these serve much the same purpose as is served by experiments
in physical science.” As a working example we shall use the following hats puzzle:
Alice, Bob and Charlie sit in a row in such a way that Alice can see Bob and
Charlie, Bob can see Charlie and Charlie can see nobody. They are shown ﬁve
hats, three of which are red and two are black. While the light is oﬀ, each of them
receives one of the hats to put on the head. When the light is back on, they are
asked whether they know what the colours of their hats are. Alice answers that
she doesn’t know. Then Bob answers that he doesn’t know either. Finally Charlie
says that he knows the colour of his hat. What colour is Charlie’s hat?

In section 2 Perseus system is described, in section 3 the general model for
epistemic interactions is introduced, in section 4 the puzzle is solved in the
model, in section 5 transition of the problem description into Perseus is deﬁned
and ﬁnally in section 6 a solution for the hats puzzle in Perseus is discussed.

2 The Perseus System

The Perseus system is a software designed for an automatic many-sided analysis
of persuasive multi-agent systems. It allows for investigations into the change of
beliefs and behaviour under the inﬂuence of persuasive actions. As a formal base
we use AGn logic [8]. Now we shall shortly describe its syntax and semantics.

Let Agt = {1, . . . , n} be a set of names of agents, V0 be a set of propositional
variables, and Π0 a set of program variables. Further, let ; denote the sequential
composition operator. It enables to compose schemes of programs deﬁned as the
ﬁnite sequences of program variables: a1; . . . ; ak. The set of all schemes of pro-
grams we denote by Π. Program variables can be interpreted as atomic actions
and schemes of programs as an arbitrary composed behaviour.

108

M. Kacprzak et al.

α ∧ ¬M d

d1,d2
i α, if d > 0 and M !
i

The set of all well-formed expressions of AGn is given by the following Backus-
Naur form (BNF): α ::= p | ¬α | α ∨ α | M d
i α | ♦(i : P )α, where p ∈ V0,
d ∈ N, P ∈ Π, i ∈ Agt. Other Boolean connectives are deﬁned in the standard
way. We also use the abbreviations: M !d
i α ⇔
M d−1
α for M !
i
AGn logic allows for expressing uncertainty of an agent about a given thesis
and a change of this uncertainty caused by speciﬁc actions. In order to reason
d1,d2
α which says that agent i considers
about uncertainty we use the formula M !
i
d2 doxastic alternatives (i.e. visions of a current global state) and d1 of them
satisfy the condition α. Intuitively it means that the agent i believes with degree
d1
d2 that α holds. For reasoning about the change of uncertainty the formula
♦(i : P )α is used. It says that after executing a sequence of (persuasive) actions
P by agent i the condition α may hold.

i α where M !0
d1
i α ∧ M !

i α ⇔ ¬M 0
d2
i (α ∨ ¬α).

i α, M !d

Deﬁnition 1. Let Agt be a ﬁnite set of names of agents. By a semantic model
we mean a Kripke structure M = (S, RB, I, v) where

– S is a non-empty set of states (the universe of the structure),
– RB is a doxastic function which assigns a binary relation to every agent,

RB : Agt −→ 2S×S,

– I is an interpretation of the program variables, I : Π0 −→ (Agt −→ 2S×S),
– v is a valuation function, v : S −→ {0, 1}V0.

Function I can be extended in a simple way to deﬁne interpretation IΠ of any
program scheme: IΠ (a)(i) = I(a)(i) for a ∈ Π0 and i ∈ Agt, IΠ (P1; P2)(i) =
((s, s(cid:3)(cid:3)) ∈ IΠ (P1)(i) and
IΠ (P1)(i) ◦ IΠ (P2)(i) = {(s, s(cid:3)) ∈ S × S : ∃s(cid:2)(cid:2)∈S
(s(cid:3)(cid:3), s(cid:3)) ∈ IΠ (P2)(i))} for P1, P2 ∈ Π and i ∈ Agt.

For a given structure M = (S, RB, I, v) and a given state s ∈ S the Boolean
value of the formula α is denoted by M, s |= α and is deﬁned inductively as
follows:

M, s |= p
M, s |= ¬α
M, s |= α ∨ β
M, s |= M d
i α
M, s |= ♦(i : P )α iﬀ ∃s(cid:2)∈S ((s, s(cid:3)) ∈ IΠ (P )(i) and M, s(cid:3) |= α).

iﬀ v(s)(p) = 1,
iﬀ M, s (cid:9)|= α,
iﬀ M, s |= α or M, s |= β,
iﬀ |{s(cid:3) ∈ S : (s, s(cid:3)) ∈ RB(i) and M, s(cid:3) |= α}| > d, d ∈ N,

for p ∈ V0,

We say that α is true in model M at state s if M, s |= α.

Given a semantic model M = (S, RB, I, v), the Perseus system analyses its
properties. In this case, the system input data, i.e. the input question, is a triple
(M, s, φ), where M is a model, s is a state of model M and φ is the input
expression. The input expression is deﬁned by the following BNF form:

d1,d2
φ ::= ω | ¬φ | φ ∨ φ | M !
i

φ | ♦(i : P )φ | M !

d1,d2
?,?
i ω|♦ (i :?) ω | M !
?

ω | ♦ (? : P ) ω,

d1,d2
ω | ♦ (i : P ) ω, and p ∈ V0,d1, d2 ∈ N, P ∈ Π,
where ω ::= p | ¬ω | ω ∨ ω | M !
i
i ∈ Agt. Therefore the language of extended AGn logic is a sublanguage of the
Perseus system input expressions. The system accepts two types of the input
expressions:

Using the Perseus System for Modelling Epistemic Interactions

109

– unknown free expressions, where grammar productions

M !?,?

d1,d2
i ω | ♦ (i :?) ω | M !
?

ω | ♦ (? : P ) ω are not allowed,

– one-unknown expression, where only one of the grammar productions

M !?,?

d1,d2
i ω | ♦ (i :?) ω | M !
?

ω | ♦ (? : P ) ω is allowed .

This grammar allows Perseus to look for answers to questions about diverse
properties of systems under consideration and, in consequence, allows to analyze
these systems in an automatic way. In particular, questions can concern

– agents - is there an agent who can inﬂuence somebody’s beliefs?, who can

do it?, who can achieve a success?

– beliefs and degrees of beliefs - does an agent believe a thesis?, what is a

degree of his uncertainty about this thesis?

– results of actions - whether a degree of agent’s belief can change after ex-
ecution of a given action or sequence of actions?, which actions should be
executed in order to convince an agent that a thesis is true?

Next, the Perseus system executes a parametric veriﬁcation of an input question,
i.e. tests if (both unknown free and one-unknown expressions) and when (only
one-unknown expressions) the expression φ becomes a formula of extended AGn
logic φ∗ such, that M, s |= φ∗ holds (see Fig. 1).

Fig. 1. The idea of the Perseus system

In the case of unknown free expressions φ∗ = φ, i.e a standard model veriﬁ-
cation is done. In the other case formula φ∗ is obtained from φ by swapping all
? symbols into appropriate values either from set {0, 1, . . . |S|} or Agt or Π. Fi-
nally the system output data, i.e the output answer, is given. The output answer
is true if M, s |= φ∗ and false in the other case. As soon as the output answer
is determined, the solution set X for the one-unknown expression is presented,
e.g. X ⊆ {0, 1, . . . |S|} × {0, 1, . . . |S|}, for an expression φ with one unknown of
the M !?1,?2

ω type.

i

110

M. Kacprzak et al.

In order to ﬁnd the answer to the input question (M, s, φ), Perseus executes
the syntax analysis of the expression φ. The analysis is based on the standard
descent recursive method. As a result a syntax tree of φ is created. All inner nodes
of such a tree represent either the Boolean operators or AGn logic modalities
while all outer nodes stand for either propositional variables or an unknown.
The solution for an arbitrary unknown is reached in the following way:
– if an unknown type is M !?1,?2

ω, then the counting method is applied, i.e. all
states, which are reachable via doxastic relation of the agent i, and in which
thesis ω is satisﬁed or refuted respectively, are counted,
d1,d2
– if an unknown type is M !
?

ω or ♦ (? : P ) ω, then for every agent i ∈ Agt
d1,d2
the property respectively M, s |= M !
ω or M, s |= ♦ (i : P ) ω is tested,
i
– if an unknown type is ♦ (i :?) ω, then a nondeterministic ﬁnite automa-
ton, which represents all possible argumentation P ∈ Π such that M, s |=
♦ (i : P ) ω holds, is created.

i

If an unknown is a nested type, i.e. it is a part of a thesis of extended AGn logic
operator, then its solution set is bounded by the outer modality/modalities. For
, then
example, if we consider an input question
solution of the unknown M !?,?
i ω is reduced ﬁrstly by the operator ♦ and secondly
by the operator M !. The detailed description of a solution bounding problem is
presented in [9].

(cid:2)
M, s, M !1,2

j ♦ (i : P ) M !?,?
i ω

(cid:3)

As we stated at the beginning of this section, the intended application for the
Perseus system is to investigate persuasion. However, the formalism underlying
the system is more general. Since it includes the representation of agents’ states
of belief and their changes caused by other agents’ actions, it can represent any
phenomena that concern such a change. One of them is knowledge aquisition.
To capture them we need to assume that all beliefs are true and all actions can
be interpreted as equivalent to truthful announcements.

3 General Model for Epistemic Interactions

Our general model for epistemic interactions has two main components: onto-
logical and epistemological. The ontological part represents a world that our
knowledge concerns. The epistemological part represents the phenomenon of the
knowledge in its static and dynamic aspects. Additionally, we introduce the time-
like component, which is used for organising all kinds of changes, for instance by
distributing the agents’ behaviours over the set of moments.

Ontological layer. Ontological layer of the model is made up of situations. They
may have any ontic structure. Thus, there are situations “in which” certain ob-
jects possess certain properties or situations“in which” certain objects participate
in certain relations or processes, etc. Every situation is a collection of elemen-
tary situations. A situation is elementary if no other situation is part of it. For
instance that Alice has a red hat would be an elementary situation and that both
Alice and Bob have red hats would not be an elementary situation.

Using the Perseus System for Modelling Epistemic Interactions

111

Let ElemSit be a set of elementary situations. In what follows, we will rep-
resent situations as sets of elementary situations: ∅ /∈ Sit ⊆ ℘(ElemSit). Maxi-
mal situations occupy a privileged position in the model and are called possible
worlds:

X ∈ P ossW orld (cid:3) X ∈ Sit ∧ ∀Y (X ⊂ Y → Y /∈ Sit).

(1)

Time layer. Let T ime = (t1, t2, . . . ) be a sequence of moments. Thus we assume
that moments are linearly ordered. We make no additional assumptions about
time.

Epistemological layer. The actual epistemic state of an agent at a given moment
will be represented by a subset of P ossW orld: epist(i, tn) ⊆ P ossW orld. Any
such state collectively represents both the agent’s knowledge and his ignorance.
Due to its actual epistemic state, which is represented by set epist(i, tn), and for
every X ∈ Sit, agent i may be described (at tn) according to the following three
aspects:

Deﬁnition 2. Agent i knows at moment tn that situation X holds (written:
Ki,tn (X)) iﬀ X ⊆

epist(i, tn).

(cid:4)

Deﬁnition 3. Agent i knows at moment tn that situation X does not hold (writ-
ten: K i,tn (X)) iﬀ X ∩ (

epist(i, tn)) = ∅.

(cid:5)

Deﬁnition 4. Agent i does not have any knowledge at moment tn about situa-
tion X iﬀ ¬Ki,tn (X) ∧ ¬Ki,tn (X).

However, the puzzles we are dealing with do not presuppose that we know the
actual epistemic state of a given agent. Thus, we extend the notion of actual
epistemic state to the notion of possible epistemic states. A possible epistemic
state of an agent represents a body of knowledge (resp. of ignorance) that the
agent may exhibit given the ontic situation and epistemic capabilities of the
agent. In our case, the possible epistemic states are determined by the relation
of seeing, other agents’ announcements and the agent’s deductive capabilities.

A possible epistemic state of an agent at a given moment will be represented
by the set epistk(i, tn) ⊆ Sit. Then, the deﬁnitions of 2–4 can be easily amended
to describe the agent’s knowledge (resp. of ignorance) in the possible epistemic
states. For instance deﬁnition 2 is transformed into the one below:

Deﬁnition 5. Agent i knows in a possible epistemic state X that (ontic) situa-
tion Y holds (written : Kepistk(i,tn)(Y )) iﬀ Y ⊆

X.

(cid:4)

We will use the following auxiliary notions: Epist(i, tn) – the set of all possible
epistemic states of agent i at tn; Epist(tn) – the set of sets of possible epistemic
states of all agents at tn; Epist – the set of sets of all possible epistemic states
of all agents (from Agt) at all moments (from T ime).

For any i ∈ Agt and tn “∼i,tn” will represent the relation of epistemological
indiscernibility, for agent i in time moment tn. The relation is an equivalence

112

M. Kacprzak et al.

relation. As the notion of knowledge itself, it is relative to time. It is an assump-
tion of our approach that possible epistemic states coincide with the abstraction
classes of the epistemological indiscernibility relation:

Epist(i, tn) = P ossW orld/ ∼i,tn

(2)

Changes of epistemic states. We assume that all changes of epistemic states are
caused by the behaviour of agents, in particular by their utterances, by means
of which they expose their (current) epistemic states and not by their inference
processes. A number of rules that govern the dynamics of epistemic states can be
deﬁned. In the hats puzzle the only rule that sets the epistemic states in motion
is the following one: If agent i says that he does not know that X holds, in an
epistemic state epistk(i, tn) i knows that X holds, then after the aforementioned
utterance this state (i.e. epistk(i, tn)) is eﬀectively impossible, i.e. we remove its
elements from all possible epistemic states of all agents. Formally,

Rule 1. If (i says that) ¬Ki,tn (X) and Y ∈ Epist(i, tn) and KY (X), then for
every i(cid:3) ∈ Agt, Epist(i(cid:3), tn+1) = δ0(Epist(i(cid:3), tn), Y ), where

Deﬁnition 6. δ0 maps Epist ×
condition:

(cid:5) (cid:5)

Epist into Epist and satisﬁes the following

⎧

⎪⎪⎪⎪⎨
⎪⎪⎪⎪⎩

Epist(i, tn)\{Z},

if Z ∈ Epist(i, tn) and
Z ⊆ X

(Epist(i, tn)\{Z}) ∪ {Z\X}, if Z ∈ Epist(i, tn) and

Epist(i, tn)

X ∩ Z (cid:9)= ∅ and Z\X (cid:9)= ∅
otherwise.

δ0(Epist(i, tn), X) =

It is worth noting that the factors that trigger the process of epistemic change
are of two kinds: ontological and epistemological. The ontological condition of
the rule 1 is the fact that agent i says that he does not know that a certain
ontic situation holds. The epistemological condition is his epistemic state (Y ∈
Epist(i, tn)), in which the agent knows that this situation holds (KY (X)).

Some other possible rules and their generalisations are presented and discussed

in [6].

4 Ontology to Epistemology Transition

In order to investigate epistemic interactions within a group of agents in certain
circumstances one has to build a detailed model of agents and their possible
behaviour. The model has to contain information about agents’ states of belief
at any moment, possible actions that can have an inﬂuence on those states of
beliefs and the details of that inﬂuence (in other words epistemic attitudes). Such
a model is quite complex even for a small number of agents and possible actions.
Usually, when systems like Perseus are used, models are described explicitely
and manually – a user deﬁnes, step by step, the states of belief of all agents and
their transitions after every possible action. That is a very laborous process and

Using the Perseus System for Modelling Epistemic Interactions

113

that fact strongly limits the possibility of application of model veriﬁers to the
real life problems.

To avoid that problem we take advantage of the fact that the way rational
agents change their beliefs strongly depends on their structure, especially on the
kind of information thay have access to. We call that feature epistemic capacities
of an agent. Thus, in the Hats Puzzle we can deduce that Alice knows the colours
of Bob’s and Charlie’s hats because she can see the hats. From such facts one
can build up a set of possible epistemic states of the agents. For example, Alice
distinguishes between the situations in which Bob’s hat has diﬀerent colours and
cannot distinguish the states that diﬀer only in her own hat colour.

We automatise such a process of building the initial state of the system within
our puzzle solver. Conseqently, we also build a model of the whole system and
that model can be used as an input model for Perseus. We believe that the in-
troduction of such a procedure is very promissing in the prospective applications
of Perseus and other similar systems.

At the moment in the puzzle solver we use the representation of epistemic
capacities designed speciﬁcally for the Hats Puzzle in which the only element of
such capacities is the relation of seeing. The possibility of generalisation of their
description using RDF format is considered in [7].

5 Solving the Hats Puzzle within the General Model

To obtain the solution of the Hats Puzzle in our model, one needs the following
input data:

– set P ossW orld
– set of epistemic agents Agt,
– set of sets of epistemic states of any such agent at the initial moment t1:

Epist(t1) = {Epist(i, t1) : i ∈ Agt},

– temporal sequence T ime = (tn),
– function dist : T ime → ℘(ElemSit).

The set P ossW orld of possible worlds and the description of the initial moment
are generated automatically on the basis of the description of the possible fea-
tures of the objects and epistemic capacities of the agents in the way describerd
in the previous section. Function dist is to distribute the agents’ behaviour over
the set of moments. In the hats puzzle we take into account only the activity of
the public announcements described by the rule 1.

We assume that function dist does not trigger more than one rule at a time.
We also assume that epistemological states change only when a certain rule is
triggered. After applying the last rule, say at moment tk (k ≤ n), we will reach
one of the four possible outcomes: (1) in every epistemic state at tk agent i knows
that situation X holds (or does not hold), (2) in one epistemic state at tk agent
i knows that X holds (or does not hold) and in another epistemic state he or
she does not know that, (3) in no epistemic state at tk agent i knows that X
holds (or does not hold) and (4) set Epist(i, tn+1) is empty. Only the ﬁrst case

114

M. Kacprzak et al.

represents the situation in which we (or any other agent, for that matter) are in
a position to solve the puzzle. On the other hand, the last situation implies that
the puzzle was inconsistent.

That representation of the puzzle and its solution is implemented in a program

that is able to solve the whole family of puzzles.

To introduce the conditions of a speciﬃc puzzle it is enough to specify the

crucial elements of its description:

– list of agents
– list of features
– relation of ’seeing’

An example of such a ﬁle corresponding to the Hats Puzzle is shown below as a
Prolog ﬁle.

% hats
% There are three red hats
colour(red, 3).
colour(black, 2). % There are two black hats

% agents
agent(’Alice’).
agent(’Bob’).
agent(’Charlie’).

% Alice is an agent
% Bob is an agent
% Charlie is an agent

% epistemic capacities of the agents
sees(’Alice’,’Bob’).
sees(’Alice’,’Charlie’). % Alice sees Charlie’s hat
sees(’Bob’,’Charlie’).

% Bob sees Charlie’s hat

% Alice sees Bob’s hat

The ﬁrst group of clauses states that there are three red hats and two black hats.
The second is a list of agents. The third deﬁnes the relation of seeing, which is
the only element of agents’ epistemic capacities.

To obtain the solution for the puzzle one needs to:

1. generate a description of initial state;
2. describe the sequence of actions moving the whole system from one state to

another;

3. analyse the ﬁnal state of the system.

This can be done by the following Prolog query, in which the single element list
of possible colours of Charlie’s hat is given as the value of variable S1.

all_agents_i_p_s(L),
change(not_knows,’Alice’,L,M),
change(not_knows,’Bob’,M,Q),

1 The code one can be found here:

http://l3g.pl/index.php?option=com content&view=article&id=62&Itemid=1

Using the Perseus System for Modelling Epistemic Interactions

115

member((’Charlie’,W1),Q),
append(W1,W2),
possible_colours(’Charlie’,W2,S).

The ﬁrst line is responsible for generating of the initial state. The two following
lines represent epistemic actions – Alice says that she does not now the colour
of her hat, and Bob says the same about himself. The remaining three lines
allow the program to analyse the ﬁnal state of the system – in the ﬁrst line the
Charlie’s epistemic state is taken from the list of all agents’ epistemic states,
in the second line the list of possible worlds (with respect to Charlies epistemic
state) is calculated and in the third one possible colours of Charlie’s hat are
gathered as a value of variable S.

The architecture of the puzzle solver based on the general model of epistemic

interactions is depicted in the ﬁgure 2.

Fig. 2. The architecture of puzzle solver

6 Generating a Global Semantic Model

A characteristic feature of the presented general model of epistemic states and
interaction, which makes it diﬀerent from other models, including the one that

116

M. Kacprzak et al.

is used by Perseus, is that it does not distinguish any possible states of the world
(situations) as real. Thus the observer having access to everything that is encoded
within the model has information about the world only through the agents’ epis-
temic constitutions and behaviour. That approach corresponds to the setting of
the hats puzzle. However, the model can be extended to include the information
about the real situation. As a result we obtain the speciﬁcation of a graph which
can be used by the Perseus system which is generated automatically on the basis
of the description of puzzle’s details.

The underlying structure of both models is analogical – a set of possible
worlds corresponds to a set of states, an elementary situation (element of possible
world) points out which proposition variables are true in a state, and actions
that trigger epistemic changes correspond to program variables. In the general
model, for each agent, the set of possible worlds is divided into partitions using
agent’s indiscernibility relation at a certain moment in time (or equivalently
after a certain combination of agent’s actions). Those partitions are represented
in the Perseus model by a doxastic function RB. However, the indiscernibility
relation changes in time. In the Perseus model the change is represented by
a combination of actions deﬁned by a schema of a program. Thus we need a
separate set of worlds to represent doxastic relations that hold after each of the
possible programs (each combination of actions performed by agents).

In Perseus, there is also another relation between states – an interpretation
I of program variables. Since a program variable is interpreted as a persuasive
action it has inﬂuence only on agents’ beliefs but not on the real world. Thus,
the relation deﬁned by interpretation I holds between similar states (states in
which the set of true propositions is the same) in diﬀerent time moments, if there
is an action that triggers epistemic change between those moments.

Formally, we have to deﬁne the structure M = (S, RB, I, v) used by Perseus
on the basis of a set of all possible epistemic states Epist and rules describing
epistemic changes after ﬁring the epistemic trigger. Since we want to include in
the model all the possible scenarios, we have to drop the time layer of the model
and consider elements of Epist as valid after performing a sequence of triggers.
For this reason we will use for them symbols Epist(x), x ∈ N. Let Epist(1)
be an initial epistemic state. Let further Epist∗ ⊆ Epist be the smallest set
containing Epist(1) closed under the operation of applying an epistemic rule.
Intuitively, Epist∗ is a set of epistemic states reachable from an initial state by
agents actions.

Not all ontologically possible worlds are epistemically possible in every epis-
Epist(x) is the
temic state, because epistemic rules exclude some of them.
set of possible worlds occurring in epistemic state Epist(x). Let Sx = {(cid:17)w, x(cid:18) :
w ∈
Epist(x)}. Now, we can deﬁne M = (S, RB, I, v) in the following
way:

(cid:5) (cid:5)

(cid:5) (cid:5)

(cid:10)

S =

{Sx : Epist(x) ∈ Epist∗}

(3)

Using the Perseus System for Modelling Epistemic Interactions

117

Fig. 3. The architecture of Perseus’ semantic model generator

RB(i) =
(4)
= {(cid:17)(cid:17)s, x(cid:18), (cid:17)s(cid:3), x(cid:3)(cid:18)(cid:18) : x = x(cid:3) and there exists e ∈ Epist(i, x), such that s, s(cid:3) ∈ e}

I(P )(i) = {(cid:17)(cid:17)s, x(cid:18), (cid:17)s(cid:3), x(cid:3)(cid:18)(cid:18) :
s = s(cid:3) and action P performed by agent i leads from Epist(k) to Epist(k(cid:3))}

(5)

v is a valuation such that in state (cid:17)s, x(cid:18) a propositional variable P is assigned to
value 1 iﬀ a respective elementary situation es ∈ s and to 0 otherwise.

On Figure 4 we present a graph automatically generated by the Perseus tool

for Hats Problem.

7 Solution for the Hats Puzzle in Perseus

First of all let us observe that the assumptions of the puzzle are satisﬁed if for
some n1, n2 ∈ N the following AGn formula holds:

♦(a : Alice)♦(a : Bob)(M !

n1,n1
Charliehas−Charlie−r ∨ M !

n2,n2
Charliehas−Charlie−b)
(6)
where a is a verbal action in which an agent announces that he does not know
what the colour of his hat is and has−Charlie−r, has−Charlie−b are proposi-
tions true in every state in which Charlie has a red or black hat, respectively.

118

M. Kacprzak et al.

Fig. 4. The graph for epistemic relations of agents automatically generated by Perseus.
The fragments of the graph representing diﬀerent epistemic states are grouped in
frames. Program variables are represented by lines labeled by ‘!’ and initials of agents,
doxastic function – just by agents’ initials (‘*’ stands for all agents).

Using the Perseus System for Modelling Epistemic Interactions

119

The formula intuitively says that “After Alice’s announcement that she does not
know the colour of her hat and Bob’s announcement that he does not know the
colour of his hat, Charlie believes with degree n1
n1 that he has a red hat or believes
with degree n2

n2 that he has a black hat”. It means that he is sure about that.

To solve the puzzle Perseus should search the model and point at a state (a set
of states) in which formula 6 is satisﬁed. Then it should check which proposition
has−Charlie−r or has−Charlie−b is true in this state (these states). Therefore,
Perseus selects a state s and then using a parametric veriﬁcation searches for
values of unknowns ?1, ?2 for which the expression

♦(a : Alice)♦(a : Bob)(M !?1,?2

Charliehas−Charlie−r ∨ M !?3,?4

Charliehas−Charlie−b)

is true at s. If ?1 =?2 = n1 or ?3 =?4 = n2 then the assumptions of the puz-
zle are satisﬁed at s and Perseus tests whether the proposition has−Charlie−r
is satisﬁed at s. In consequence, Charlie has a red hat if for every state for-
mula 6 implies proposition has−Charlie−r. Similarly, if for every state 6 implies
has−Charlie−b then Charlie has a black hat.

Apart from the ability to solve the puzzle, Perseus is equipped with tools
which can help to analyse the scenario in a more detailed way. First of all, it
answers the question which actions Alice and Bob should perform to inﬂuence
Charlie’s beliefs and cause that he will know the colour of his hat. In this case
Perseus executes a parametric veriﬁcation with the input expression

♦(? : Alice)♦(? : Bob)(M !1,1

Charliehas−Charlie−r ∨ M !1,1

Charliehas−Charlie−b).

The other question concerns the agents who can inﬂuence Charlie’s beliefs, i.e.
who is the most successful performer of the announcement action

♦(a :?)♦(a :?)(M !1,1

Charliehas−Charlie−r ∨ M !1,1

Charliehas−Charlie−b).

Finally, we could be interested in keeping track of the change of degrees of
Charlie’s beliefs. Then, the input question is

♦(a : Alice)(M !

?,?
Charliehas−Charlie−r) or ♦(a : Alice)(M !

?,?
Charliehas−Charlie−b).

8 Changing the Puzzle

The way of solving the puzzle is fairly general. Applying exactly the same algo-
rithm we can change the number of agents, the number of colours and number of
hats of diﬀerent colours. Thus, we can approach any problem in which only one
feature of the objects in concern is considered. As an example of an alternative
application of our procedure let us consider the well known Muddy Children
Problem.

In general settings the Muddy Children Puzzle can be deﬁned as follows:
There are n children playing together. During their play some of the children,
say k of them, get mud on their foreheads. Each can see the mud on others but

120

M. Kacprzak et al.

not on his own forehead. Along comes a father, who says: ‘At least one of you has
mud on your head’. He then asks the following question, over and over: ‘Can any
of you prove that you have mud on your head?’ Assuming that all the children
are perceptive, intelligent, truthful, and that they answer simultaneously, what
will happen?

For example, let us consider the case with n=3. We need to encode the probem

within the Hats Puzzle language. We will do it in the following way.

– Muddy child - red hat.
– Clean child - black hat.
– At leats one of the children is muddy - there are three black hats and four

red.

Fig. 5. The whole model constructed for Muddy Children Problem automatically gen-
erated by Perseus

Such encoding enables us to express the Muddy Children Problem in the form

of the following Prolog ﬁle which can be used as an input to our program.

Using the Perseus System for Modelling Epistemic Interactions

121

% hats
colour(red, 3).
colour(black, 2).

% agents
agent(’Child_1’).
agent(’Child_2’).
agent(’Child_3’).

% epistemic capacities of the agents
sees(’Child_1’,’Child_2’).
sees(’Child_1’,’Child_3’).
sees(’Child_2’,’Child_1’).
sees(’Child_2’,’Child_3’).
sees(’Child_3’,’Child_1’).
sees(’Child_3’,’Child_2’).

Using that ﬁle makes our program to generate a Perseus’ graph for the Muddy
Children Problem. The graph can be further used for many folded analyses of
the problem as we shown for the case of the Hats Puzzle.

The model for Muddy Children Problem generated by the Perseus tool is

shown in Figures 5 and 6.

9 Relation to Other Works

The application of the Perseus system to epistemic interactions places the present
work among the considerations about tools for automated deduction for epistemic
logic using systems like DEMO [13] or Aximo [14]. In general, those systems have
similar expresive power and performance when applied to puzzles like the one con-
sidered in the paper. Since Perseus has features that enable it to express uncertain
beliefs, it seems that using it may lead to more interesting results.

Veriﬁcation of epistemic and temporal formulas is possible by means of model
checkers like MCMAS [15] or Verics [16]. In comparison with them, Perseus
is distinguished by two issues. First of all, it performs pure model checking
and, what is more, parametric veriﬁcation. It means that, given a model of a
system, it can test automatically whether this model meets a given speciﬁcation
or given an input expressions with unknowns it can determine for which values of
these unknowns the obtained logical formula is true in this model. Furthermore,
Perseus is not limited to veriﬁcation of formulas with epistemic and dynamic
operators. It works also with graded doxastic modalities and, in the newest,
enriched version, with probabilistic modalities [17].

In the ﬁeld of veriﬁcation of distributed systems, one of the crucial problems
refers to the question how to build a model of a given system. The main challenge
is to do it in an automatic way. The current paper provides one of the solutions
which can be applied to the Perseus system. The Authors are not aware of any

122

M. Kacprzak et al.

Fig. 6. The fragment of the graph from Figure 5 representing the initial state

other work aiming at automated generation of models that can be used as an
input to the systems of automated deduction for epistemic logic.

10 Conclusion

The main contribution of the paper is using the existing software (the Perseus
system) designed to represent the persuasion processes to model agent’s knowl-
edge acquisition. In order to do that we have designed and implemented an al-
gorithm automatically generating a description of a graph that can be uploaded
by the Perseus system, from the description of a situation in which knowledge
acquisition takes place. It enables us to present the possible knowledge acqui-
sition processes on diagrams generated by the Perseus system and perform a
number of calculations that help us to understand the processes. Among other
computations, the Perseus system is able to solve the hats puzzle, which was the
initial task.

References

1. Meyer, J.-J.C., van der Hoek, W.: Epistemic logic for AI and computer science.

Cambridge University Press, Cambridge (1995)

2. van Ditmarsch, H., van der Hoek, W., Kooi, B.: Dynamic Epistemic Logic. Synthese

Library Series, vol. 337. Springer, Heidelberg (2007)

3. Fagin, R., Halpern, J.Y., Moses, Y., Vardi, M.Y.: Reasoning About Knowledge.

MIT Press, Cambridge (2003)

Using the Perseus System for Modelling Epistemic Interactions

123

4. Baltag, A., Moss, L.: Logics for epistemic programs. Knowledge, Rationality &

Action (Synthese) 139, 165–224 (2004)

5. Garbacz, P., Kulicki, P., Lechniak, M., Trypuz, R.: Beyond public announcement
logic: An alternative approach to some AI puzzles. In: Mertsching, B., Hund, M.,
Aziz, Z. (eds.) KI 2009. LNCS, vol. 5803, pp. 379–386. Springer, Heidelberg (2009)
6. Garbacz, P., Kulicki, P., Lechniak, M., Trypuz, R.: A formal model for epistemic
interactions. In: Nguyen, N.T., Katarzyniak, R., Janiak, A. (eds.) New Challenges
in Computational Collective Intelligence. SCI, pp. 205–216. Springer, Heidelberg
(2009)

7. Kulicki, P., Garbacz, P., Trypuz, R., Lechniak, M.: Epistemic capacities, incompat-
ible information and incomplete beliefs. In: Arrazola, X., Ponte, M. (eds.) LogKCA
2010. Proceedings of the Second ILCLI International Workshop on Logic and Phi-
losophy of Knowledge, Communication and Action, pp. 255–273. University of the
Basque Country Press (2010)

8. Budzy´nska, K., Kacprzak, M.: A logic for reasoning about persuasion. Fundamenta

Informaticae 85, 51–65 (2008)

9. Budzy´nska, K., Kacprzak, M., Rembelski, P.: Perseus. software for analyzing per-

suasion process. Fundamenta Informaticae 93, 65–79 (2009)

10. Kacprzak, M., Kulicki, P., Trypuz, R., Budzynska, K., Garbacz, P., Lechniak, M.,
Rembelski, P.: Using perseus system for modelling epistemic interactions. In: J (cid:4)e-
drzejowicz, P., Nguyen, N.T., Howlet, R.J., Jain, L.C. (eds.) KES-AMSTA 2010.
LNCS (LNAI), vol. 6070, pp. 315–324. Springer, Heidelberg (2010)

11. Petty, R.E., Cacioppo, J.T.: Attitudes and Persuasion: Classic and Contemporary

Approaches. Westview Press (1996)

12. Russell, B.: On Denoting. Mind 14, 479–493 (1905)
13. Eijck, J.V., Orzan, S.: Modelling the epistemics of communication with functional
programming. In: 6th Symposium on Trends in Functional Programming, TFP
2005, pp. 44–59 (2005)

14. Richards, S., Sadrzadeh, M.: Aximo: Automated axiomatic reasoning for informa-
tion update. Electronic Notes in Theoretical Computer Science, ENTCS (2009)
15. Lomuscio, A., Qu, H., Raimondi, F.: MCMAS: A model checker for the veriﬁca-
tion of multi-agent systems. In: Bouajjani, A., Maler, O. (eds.) CAV 2009. LNCS,
vol. 5643, pp. 682–688. Springer, Heidelberg (2009)

16. Kacprzak, M., Nabia(cid:3)lek, W., Niewiadomski, A., Penczek, W., P´o(cid:3)lrola, A., Szreter,
M., Wo´zna, B., Zbrzezny, A.: Verics 2008 - a model checker for time petri nets and
high-level languages. In: Proc. of the International Workshop on Petri Nets and
Software Engineering (PNSE 2009), pp. 119–132. University of Hamburg, Depart-
ment of Informatics, Paris, France (2009)

17. Budzy´nska, K., Kacprzak, M., Rembelski, P.: Update of probabilistic beliefs: Im-
plementation and parametric veriﬁcation. Fundamenta Informaticae 102(1), 35–48
(2010)

Reduction of Faulty Detected Shot Cuts and Cross 
Dissolve Effects in Video Segmentation Process 
of Different Categories of Digital Videos 

Kazimierz Choroś 

Institute of Informatics, Wrocław University of Technology, 
Wybrzeże Wyspiańskiego 27, 50-370 Wrocław, Poland 
kazimierz.choros@pwr.wroc.pl 

Abstract.  Video  segmentation  is  an  important  computer  vision  research  field 
being  applied  in  many  digital  video  analysis  domains,  such  as:  video 
compression, video indexing and retrieval, video scene detection, video content 
analysis, video object tracking in dynamic scenes, and many others. Video has 
temporal properties. The temporal segmentation process leads to the partition of 
a  given  video  into  a  set  of  meaningful  and  individually  manageable  temporal 
segments. An effective segmentation technique is able to detect not only abrupt 
changes but also gradual scene changes, such as fade and dissolve transitions. 
The effectiveness of four methods was analyzed for five different categories of 
movie:  TV  talk-show,  documentary  movie,  animal  video,  action  &  adventure, 
and  pop  music  video.  The  tests  have  shown  that  the  specific  nature  of  videos 
has  an  important  influence  on  the  effectiveness  of  temporal  segmentation 
methods. Furthermore, the knowledge on these specific features of the style of 
video  editing has  been used to reduce the number of  faulty detected shot cuts 
and faulty detected cross dissolve effects. 

Keywords: digital video indexing, temporal segmentation, scene changes, cuts, 
cross dissolve effects, movie categories. 

1   Introduction 

Multimedia  indexing  and  retrieval  methods  should  not  apply  only  traditional 
techniques used for example by Internet search engines for retrieving textual parts of 
Web pages. We also expect efficient solutions for the retrieval of other kind of media 
like  images,  audio  and  video  clips.  The  text  is  auto  descriptive,  it  is  composed  of 
natural  language  words  which  can  be  treated  as  index  terms  used  in  retrieval.  The 
process of text indexing is usually limited to the identification of words or expressions 
in the text. 

Let’s notice that the text has structural features. These are: language of the text, its 
length,  number  of  standard  pages  or  paragraphs,  number  of  words  or  characters, 
number  of  columns,  the  size  of  characters,  and  many  other  statistical  and  editorial 
properties. 

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 124–139, 2011. 
© Springer-Verlag Berlin Heidelberg 2011 

Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

125 

In  many  cases  the  textual  information  retrieval  systems  also  retrieve  other 
multimedia  objects.  They  are  processed  similarly  to  texts,  i.e.  the  multimedia  are 
indexed  by  textual  indexes  derived  from  the  texts  accompanying  these  multimedia 
objects. A multimedia retrieval system should analyze the content in all media forms, 
so, not only textual parts. Furthermore, we should be able to express in our requests 
different aspects of the media we need. This leads to the necessity of analyzing and of 
indexing the multimedia documents using specific features of each media. The other 
media are not of the same nature as text. Images as well as audio and video clips are 
much more expressive than traditional documents containing only text but they do not 
explicitly  include  index  terms.  The  multimedia  information  stored  in  a  document 
should be represented by a set of specific features, i.e. by textual, structural as well as 
by the content-descriptive metadata specific for each medium [11]. 

Visual information can be described by traditional bibliographic data such as title, 
abstract, subject, genre, but also by technical or structural data such as color, texture, 
shape for a static image, or a hierarchy of movie, segment, motion, pan, zoom, scene, 
and finally shot for a movie. These characteristics are derived on the bases of textual 
description or from relatively easy measured technical and structural parameters. 

Users could certainly benefit  from a retrieval in  which one could refer to content 
semantics,  i.e.  to  events,  emotions  or  meaning  associated  with  visual  information. 
These  data  are  called  content-descriptive  metadata.  Content  of  a  still  image  [19]  is 
expressed  by  its  perceptual  properties,  like  color,  texture,  shape,  and  spatial 
relationships,  but  also  by  semantic  primitives  corresponding  to  abstractions,  like 
objects,  roles,  and  scenes,  and  finally  by  such  imprecise  features  like  impressions, 
emotions, and meaning associated with the perceptual features combined together. 
The indexing process of digital video clips can be performed at several levels: 
•  text  annotation  –  traditional  approach  leading  to  the  identification  of  index  terms 
describing  the content of the  video clip –  words in natural languages can be also 
detected directly in the image or video [12]; 

•  analysis of technical features [21]; 
•  automatic analysis of video content [2, 10, 16, 17]. 

A  temporal  segmentation  is  a  process  leading  to  the  identification  of  meaningful 
video  units,  like  shots,  episodes  or  scenes  [8].  Generally,  it  is  the  first  step  of 
decomposition  of  a  video  clip  aiming  to  the  partition  of  a  given  video  into  a  set  of 
meaningful and individually manageable temporal segments, which then can serve as 
basic units for content analysis and indexing as well as video summarization [18]. 

2   Temporal Segmentation Process 

A  video  clip  is  also  structured  -  like  a  text  -  into  a  strict  hierarchy  [10].  A  clip  is 
divided into some scenes, and a scene is composed of one or more camera shots.  A 
scene usually corresponds to some logical event in a video such as a sequence of shots 
making up a dialogue scene, or an action scene in a movie. A shot is usually defined 
as  a  continuous  video  acquisition  with  the  same  camera,  so,  it  is  as  a  sequence  of 
interrelated consecutive frames recorded contiguously and representing a continuous 
action in time or space. 

 
126 

K. Choroś 

A shot change occurs when a video acquisition is done with another camera. The 
cut is the simplest and the most frequent way to perform a change between two shots. 
In this case, the last frame of the first video sequence is directly followed by the first 
frame of the second video sequence. Cuts are probably the easiest shot changes to be 
detected. But software used for digital movie editing is more and more complex and 
other shot changes are now available. They include effects or transitions like a wipe, a 
fade, or a dissolve [19]. A wipe effect is obtained by progressively replacing the old 
image by the new one, using  a spatial basis.  A dissolve is  a transition  where all the 
images  inserted  between  the  two  video  sequences  contain  pixels  whose  values  are 
computed as linear combination of the final frame of the first video sequence and the 
initial frame of the second video sequence. Cross dissolve describes the cross fading 
of  two  scenes.  Over  a  certain  period  of  time  (usually  several  frames  or  several 
seconds) the images of two scenes overlay, and then the current scene dissolves into a 
new  one.  Fades  are  special  cases  of  dissolve  effects,  where  a  most  frequently  black 
frame replaces the last frame of the first shot (fade in) or the first frame of the second 
shot  (fade  out).  There  are  also  many  other  kinds  of  effects  combining  for  example 
wipe and zoom, etc. 

A temporal segmentation of video clips is a process of partitioning a video frame 
sequence  into  shots  and  scenes.  It  is  the  first  and  indispensable  step  towards  video-
content analysis and content-based video browsing and retrieval. 

There are many methods of temporal segmentation and they are still being refined 
[1,  3,  4,  5,  7,  14,  19,  20,  22].  The  simplest  methods  are  those  analyzing  individual 
pixels  of  the  consecutive  frames,  the  most  complex  are  based  on  the  histogram 
analysis and the detection of the motion during the video sequence. Several categories 
can be distinguished  [15]: 
•  pixel pair differences, 
•  histogram differences of frames, 
•  block sampling of  video frames, 
•  feature-based methods, 
•  motion-based methods, and 
•  combination of approaches. 

The  fundamental  method  is  a  shot  change  detection  method  based  on  pixel  pair 
difference. It is known as the template matching. For every two successive frames, the 
values  of  intensity  differences  are  computed  for  pixel  pairs  having  the  same  spatial 
position  in  these  two  frames.  Then,  the  cumulated  sum  of  intensity  differences  is 
compared  with  a  fixed  threshold  in  order  to  determine  if  a  shot  change  has  been 
detected.  Several  other  statistical  measures  have  been  proposed,  among  others  the 
normalized difference energy and the normalized sum of absolute differences. 

Two  images  can  be  also  compared  using  global  features  instead  of  local  features 
(pixels). Histogram is the best global image feature widely used in image processing. 
The  main  advantage  of  histogram-based  methods  is  their  global  aspect.  There  are 
several  methods  which  compute  differences  between  histograms  or  weighted 
differences  between  histograms.  The  other  methods  define  an  intersection  operator 
between histograms, different distances or different similarity measures. 

The main advantage of the third group of segmentation methods that use the block 
sampling  of  video  frames  is  the  decrease  of  the  computation  time.  The  algorithms 

Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

127 

proposed for pixel or histogram analysis methods are applied for block representation 
of  images.  The  other  advantage  of  block-based  methods  is  their  relatively  weak 
sensitivity to noise and camera or object motion. 

The  next  group  of  temporal  segmentation  methods  takes  into  consideration 

sophisticated features of images, such as [15]: 
•  moment invariants combined with histogram intersection, 
•  contour lines extracted from the image, 
•  some feature points extracted using Hough transform, 
•  planar points – points contained in a flat neighbourhood of the hyper surface, 
•  comparing of color histograms of regions of two successive frames, 
•  modeling of the video transition effects, 
•  use of some decision process as Bayesian methods, 
•  features computed from classical statistical approaches, and 
•  use of hidden Markov models. 

Among  the  motion-based  methods  are  the  methods  based  on  global  (or  camera) 
motion, motion vectors, optical flow, and correlation in the frequency domain. 

The last group of methods relays upon the shot change detection by combining two 

or several algorithms. 

3   Features of Different Video Categories 

The question arises whether the dynamic nature and editing style of video clips has an 
influence on the effectiveness of temporal segmentation methods. Generally, the more 
dynamic video editing, the easier cut detection. In a dynamic clip there are usually no 
cross dissolve effects. 

Most  frequently categories of  movies are defined on  the basis of theme of  movies. 
But  we  can  define  other  criteria  to  categorize  movies.  The  dynamism,  style,  and 
richness of  movie storyboard  and editing are  very  significant: dialog (audio) speed or 
pace  of  the  narration,  camera  motion,  light  changes,  action  dynamism,  and  special 
effects. 

We have decided to measure the influence of the movie features on effectiveness of 
the temporal segmentation using five digital videos of different types: TV talk-show, 
documentary movie, animal video, action & adventure, and pop music video. 

TV talk-show is generally special video shot realized in the TV studio, with a static 
scene,  almost  without  camera  movements  and  without  object  movements,  without 
colour changes of the scene, without light effects and without special editing effects. 

Documentary  video  is  also  static  in  nature,  also  without  dynamic  changes  on  the 
scene, but some fragments of such a video could be clearly different. In documentary 
videos many effects such as fades and dissolves are usually used. 

Animal  videos  are  totally  different.  Objects  of  the  scene  (mainly  animals)  are 
moving, but rather in a slaw  manner, also camera is  moving also in a slow  manner, 
rather  constant  but  very  rich  variety  of  colour  used  in  every  episode.  The  dissolve 
effects are rather long. 

Adventure video is a video composed of dynamic, short clips. We observe in such 
movies  dynamic  camera  movements,  also  dynamic  object  movements  on  the  scene, 
rich colours, contrast quickly changing, changing light, and many effects. 

 
128 

K. Choroś 

In  pop  music  videos  the  editing  style  is  extremely  dynamic,  many  images  are 
rapidly juxtaposed together, many very rapid movements of cameras, lights, as well as 
objects of the  scene. The clips of the video are very short, even less  then 1  second, 
cuts  are  very  frequent,  dissolve  effects  are  relatively  rare,  contrary  to  light  effects 
which are often used. 

The  following  five  representatives  of  the  discussed  above  types  of  videos  were 

used in experiments with temporal segmentation methods: 
•  TV talk-show – resolution: 576x432, duration: 5:05, frame rate: 25 fps, number of 

cuts: 61, number of cross dissolves: 0; 

•  documentary  video  –  resolution:  512x320,  duration:  5:12,  frame  rate:  25  fps, 

number of cuts: 45, number of cross dissolves: 8; 

•  animal video – resolution: 640x352, duration: 5:01, frame rate: 25 fps, number of 

cuts: 66, number of cross dissolves: 2; 

•  adventure video – resolution: 640x272, duration: 5:06, frame rate: 25 fps, number 

of cuts: 98, number of cross dissolves: 0; 

•  POP  music  video  –  resolution:  436x4370,  duration:  1:56,  frame  rate:  25  fps, 

number of cuts: 93, number of cross dissolves: 13. 

4   Tests and Results 

Four main  well-known methods of a temporal segmentation have been implemented 
[13]. These methods are: 
•  pixel pair differences, 
•  likelihood ratio method based on block sampling of video frames, 
•  histogram differences of frames, 
•  twin threshold comparison. 

These  methods  process  non-compressed  video  files.  Experimental  results  will  be 
presented to demonstrate the performance of various algorithms. The algorithms have 
some  parameters.  In  the  tests  several  sets  of  specific  parameters  have  been  used  to 
demonstrate  their  influence  on  the  effectiveness  of  the  temporal  segmentation 
methods. 

The Tables 1 to 4 present the results obtained in the tests. These results were early 

reported in [6]. Notations used in the tables: 

PT 
C 
CC 
OC 
FC 
D 
CD 
OD 
FD 
R 
P 

- processing time (minutes:seconds), 
- number of recognized cuts, 
- number of cuts correctly recognized, 
- number of omitted cuts (not-recognized), 
- faulty cuts, 
- number of recognized cross dissolve effects, 
- number of cross dissolves correctly recognized, 
- number of omitted cross dissolves (not-recognized), 
- faulty cross dissolves, 
- recall, 
- precision. 

Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

129 

Table 1. Experimental results of temporal segmentation for pixel pair differences. Two pixels 
are different if the difference of their values is greater than t. There is a cut between two frames 
if T % of pixels of two consecutive frames is different. 

Parameters 

Cuts 

Cross Dissolves 

Effectiveness of 
effect detection 

20 

30 

40 

20 

30 

40 

20 

30 

40 

20 

30 

40 

TV Talk-Show 

t 

T 

PT 

C  CC  OC

20  07:40 

278 

50  07:45 

30  07:48 

100 

20  07:34 

Documentary Video 

t 

T 

PT 

C  CC  OC

20  05:21 

524 

50  05:24 

30  05:20 

100 

20  05:19 

Animal Video 

20  06:45 

925 

50  06:48 

30  06:48 

100 

20  06:50 

Adventure Video 

t 

T 

PT 

C  CC  OC

61 

61 

61 

17 

0

0

0

44

45 

43 

45 

36 

0

2

0

9

60 

52 

54 

22 

6

14

12

44

FC

217

0

0

0

FC

479

0

0

0

FC

865

1

20

0

D CD OD

FD

R 

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1.00 

1.00 

1.00 

0.28 

D CD OD

FD

R 

1

0

0

0

1

0

0

0

7

8

8

8

0

0

0

0

0.87 

0.81 

0.85 

0.68 

D CD OD

FD

R 

0

0

0

0

0

0

0

0

2

2

2

2

0

0

0

0

0.88 

0.76 

0.79 

0.32 

61 

61 

17 

43 

45 

36 

53 

74 

22 

t 

T 

PT 

C  CC  OC

FC

D CD OD

FD

R 

20  05:37  2596 

0 2498

98 

91 

97 

52 

7

1

46

132 

274 

65 

50  05:37 

30  05:36 

100 

20  05:37 

POP Music Video 

t 

T 

PT 

C  CC  OC

20 

30 

40 

20  03:07 

585 

50  03:09 

72 

30  03:10 

105 

100 

20  03:03 

57 

95 

70 

95 

57 

0

25

0

38

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1.00 

0.93 

0.99 

0.53 

D CD OD

FD

R 

8

2

2

0

8

2

2

0

5

11

11

13

0

0

0

0

0.95 

0.67 

0.90 

0.53 

41

177

13

FC

490

2

10

0

P 

0.22 

1.00 

1.00 

1.00 

P 

0.09 

1.00 

1.00 

1.00 

P 

0.06 

0.98 

0.73 

1.00 

P 

0.04 

0.69 

0.35 

0.80 

P 

0.17 

0.97 

0.91 

1.00 

 
 
 
130 

K. Choroś 

Table 2. Experimental results of temporal segmentation for the likelihood ratio method based 
on block sampling of video frames. Two blocks are different if the difference of their average 
values is greater than t. There is a cut between two frames if T % of blocks of two consecutive 
frames is different. 

Parameters 

Cuts 

Cross Dissolves 

Effectiveness 
of effect 
detection 

TV Talk-Show 
blocks  t  T 

PT 

C  CC OC

FC

D CD OD FD

R 

4x3 

4x3 

8x6 

2  30
3  20

14:48 
14:46 

2  40

14:36 

51 

44 

68 

16x9  1  80

14:48 

296 

50

43

61

61

11

18

0

0

1

1

7

235

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0.82 

0.70 

1.00 

1.00 

Documentary Video 
blocks  t  T 

PT 

C  CC OC

FC

D CD OD FD

R 

4x3 

4x3 

8x6 

2  30

09:39 

3  20

09:32 

2  40

09:45 

41 

40 

45 

16x9  1  80

09:46 

638 

41

40

45

45

4

5

0

0

0

0

0

593

0

0

0

7

0

0

0

7

8

8

8

1

0

0

0

0

0.77 

0.75 

0.85 

0.98 

Animal Video 

blocks  t  T 

PT 

C  CC OC

FC

D CD OD FD

R 

4x3 

4x3 

8x6 

2  30

12:15 

3  20

12:23 

2  40

12:08 

67 

73 

82 

16x9  1  80

12:16  1587 

60

58

65

66

6

8

1

7

15

17

0 1521

0

0

0

2

0

0

0

2

2

2

2

0

0

0

0

0

0.88 

0.85 

0.96 

1.00 

Adventure Video 

blocks  t  T 

PT 

C  CC OC

FC

D CD OD FD

R 

4x3 

4x3 

8x6 

2  30

09:57 

3  20

09:59 

2  40

09:54 

118 

100 

142 

16x9  1  80

09:55  2839 

86

76

93

98

12

22

3

32

24

47

0 2741

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0.88 

0.78 

0.95 

1.00 

POP Music Video 

blocks  t  T 

PT 

C  CC OC

FC D CD OD FD

R 

4x3 

4x3 

8x6 

2  30

06:04 

3  20

06:06 

72 

65 

2  40

06:03 

102 

16x9  1  80

06:04 

0 

60

52

87

0

35

43

8

95

12

13

15

0

7

5

5

0

4

5

5

0

9

8

8

13

3

0

0

0

0.59 

0.53 

0.85 

0.00 

P 

0.98 

0.98 

0.90 

0.21 

P 

1.00 

1.00 

1.00 

0.08 

P 

0.90 

0.79 

0.79 

0.04 

P 

0.73 

0.76 

0.65 

0.03 

P 

0.81 

0.81 

0.86 

0.00 

 
Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

131 

Table  3.  Experimental  results  of  temporal  segmentation  for  histogram  differences  of  frames. 
There is a cut between two frames if T % of values of the histograms of two consecutive frames 
is different. 

Parameter 

Cuts 

Cross Dissolves 

Effectiveness of 
effect detection 

C  CC  OC

FC

D CD OD

FD

R 

TV Talk-Show 

T 

20 

40 

60 

80 

PT 

05:36 

05:40 

06:19 

06:18 

61 

39 

0 

0 

61 

39 

0 

0 

0

22

61

61

Documentary Video 

T 

20 

40 

60 

80 

PT 

04:07 

04:08 

04:07 

04:09 

C  CC  OC

60 

34 

16 

3 

44 

34 

16 

3 

1

11

29

42

Animal Video 

T 

20 

40 

60 

80 

PT 

04:52 

04:49 

04:50 

04:50 

C  CC  OC

98 

36 

21 

5 

64 

36 

21 

5 

2

30

45

61

Adventure Video 

T 

20 

40 

60 

80 

PT 

04:16 

04:15 

04:15 

04:17 

POP Music Video 

135 

61 

22 

5 

90 

48 

19 

5 

8

50

79

93

T 

20 

40 

60 

80 

PT 

02:18 

02:21 

02:21 

02:20 

C  CC  OC

95 

66 

6 

1 

0 

5 

1 

0 

29

90

94

95

0

0

0

0

FC

16

0

0

0

FC

34

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1.00 

0.64 

0.00 

0.00 

D CD OD

FD

R 

3

0

0

0

3

0

0

0

5

8

8

8

0

0

0

0

0.89 

0.64 

0.30 

0.06 

D CD OD

FD

R 

1

0

0

0

1

0

0

0

1

2

2

2

0

0

0

0

0.96 

0.53 

0.31 

0.07 

45

13

3

0

FC

29

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0.92 

0.49 

0.19 

0.05 

D CD OD

FD

R 

4

0

0

0

4

0

0

0

9

13

13

13

0

0

0

0

0.65 

0.05 

0.01 

0.00 

P 

1.00 

1.00 

0.00 

0.00 

P 

0.75 

1.00 

1.00 

1.00 

P 

0.66 

1.00 

1.00 

1.00 

P 

0.67 

0.79 

0.86 

1.00 

P 

0.74 

0.83 

1.00 

0.00 

C  CC  OC

FC

D CD OD

FD

R 

 
 
132 

K. Choroś 

Table  4.  Experimental  results  of  temporal  segmentation  for  the  twin  threshold  comparison 
method.  In  the  twin  comparison  threshold  method  the  twin  thresholds  Tb  is  used  for  cut 
detection and Ts is used for special effect detection. l, k – additional parameters. 

Parameter 

Cuts 

Cross Dissolves 

Effectiveness of 
effect detection 

TV Talk-Show 

l  k  Ts  Tb
9
1  2 

2 

12:55 

2  4 

3  17 13:02 

3  6 

5  24 12:49 

4  8 

6  32 12:38 

Documentary Video 

l  k  Ts  Tb
1  2 

2  11 08:48  128 

2  4 

5  20 08:47 

3  6 

7  29 08:50 

4  8 

9  38 08:52 

56 

42 

34 

Animal Video 

l  k  Ts  Tb
1  2 

3  14 10:50  169 

2  4 

5  25 11:00 

3  6 

8  36 11:17 

4  8  11  47 11:29 

67 

42 

30 

Adventure Video 

l  k  Ts  Tb
1  2 

4  16 09:33  154 

2  4 

7  28 09:35 

3  6  11  40 09:37 

4  8  15  52 09:38 

99 

59 

36 

POP Music Video 

l  k  Ts  Tb
1  2 

4  15 05:19  140 

2  4 

8  26 05:15 

37 

3  6  12  36 05:14 

4  8  17  47 05:16 

7 

3 

PT 

C  CC OC FC

D CD OD FD

R 

85 

61 

59 

55 

61

61

59

55

0

0

2

6

24

0

0

0

78

32

14

7

0

0

0

0

0

0

0

0

78

32

14

7

1.00 

1.00 

0.97 

0.90 

PT 

C  CC OC FC

D CD OD FD

R 

45

44

39

33

0

1

6

12

83

12

3

1

145

47

22

10

8

8

6

5

0

0

2

3

137

39

16

5

1.00 

0.98 

0.85 

0.72 

PT 

C  CC OC FC

D CD OD FD

R 

66

58

41

30

0

8

25

36

103

104

9

1

0

51

23

11

2

1

1

1

0

1

1

1

102

50

22

10

1.00 

0.87 

0.62 

0.46 

PT 

C  CC OC FC

D CD OD FD

R 

95

76

47

30

3

22

51

68

59

23

12

6

167

38

7

4

0

0

0

0

0

0

0

0

167

38

7

4

0.97 

0.78 

0.48 

0.31 

PT 

C  CC OC FC

D CD OD FD

R 

83

29

5

3

12

66

90

92

57

8

2

0

64

24

6

1

12

9

6

0

1

4

7

13

52

15

0

1

0.88 

0.35 

0.10 

0.03 

P 

0.37 

0.66 

0.81 

0.89 

P 

0.19 

0.50 

0.70 

0.86 

P 

0.25 

0.50 

0.65 

0.76 

P 

0.30 

0.55 

0.71 

0.75 

P 

0.47 

0.62 

0.85 

0.75 

 
 
Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

133 

5   Best Results of Recall and Precision 

Let us examine now the values of the best results of recall and precision achieved for 
the  tested  categories  of  video,  i.e.  the  values  achieved  using  one  of  the  methods  of 
temporal  segmentation,  no  matter  which  one,  implemented  for  the  experiments.  It 
may signal what is the highest level of temporal segmentation efficiency possible to 
attained  by  known  methods  for  different  categories  of  video.  Nevertheless,  it  is 
obvious  that  a  method  applied  for  one  category  of  videos  can  be  less  effective  for 
another category. 

5.1   Best Results of Recall 

The highest values of recall have been obtained using the twin threshold comparison 
method,  but  for  this  method  with  the  best  parameters  of  processing  and  in 
consequence  the  best  results  of  recall  we  observe  relatively  very  low  results  of 
precision. The simple histogram difference method produced good results of recall as 
well as of precision. 

Table  5.  The  best  results  of  recall  of  temporal  segmentation  methods  received  for  every 
category of video 

Results 
with the best 
RECALL 

TV 
Talk-Show 
Documentary 
Video 
Animal 
Video 
Adventure 
Video 
POP Music 
Video 

Pixel pair 
differences 

Likelihood ratio 
method 

Histogram 
differences 

Twin threshold 
comparison 

R 

P 

R 

P 

R 

P 

R 

P 

1.00 

1.00 

1.00 

0. 90 

1.00 

1.00 

1.00 

0.66 

0.87 

0.09 

0.98 

0.08 

0.89 

0.75 

1.00 

0.19 

0.88 

0.06 

1.00 

0.04 

0.96 

0.66 

1.00 

0.25 

1.00 

0.04 

1.00 

0.03 

0.92 

0.67 

0.97 

0.30 

0.95 

0.17 

0.85 

0.86 

0.65 

0.74 

0.88 

0.47 

5.2   Best Results of Precision 

In  the  case  of  precision  the  highest  values  of  recall  have  been  obtained  using  the 
histogram difference method. Notice, however, that the more dynamic editing style of 
video,  the  lower  the  value  of  recall.  For  the  adventure  video  and  music  video  the 
value of recall is not acceptable (only 0.05 and 0.01). 

 
 
134 

K. Choroś 

Table  6.  The  best  results  of  precision  of  temporal  segmentation  methods  received  for  every 
category of video 

Results 
with the best 
PRECISION 

TV 
Talk-Show 
Documentary 
Video 
Animal 
Video 
Adventure 
Video 
POP Music 
Video 

Pixel pair 
differences 

Likelihood ratio 
method 

Histogram 
differences 

Twin threshold 
comparison 

R 

P 

R 

P 

R 

P 

R 

P 

1.00 

1.00 

0.82 

0.98 

1.00 

1.00 

0.90 

0.89 

0.85 

1.00 

0.85 

1.00 

0.64 

1.00 

0.72 

0.86 

0.32 

1.00 

0.88 

0.90 

0.53 

1.00 

0.46 

0.76 

0.53 

0.80 

0.78 

0.76 

0.05 

1.00 

0.31 

0.75 

0.67 

1.00 

0.85 

0.90 

0.01 

1.00 

0.10 

0.85 

Generally,  when  we  like  to  receive  the  best  values  of  the  recall  ratio,  the  twin 
threshold  comparison  method  is  recommended.  The  histogram  difference  method 
leads to the best values of the precision ration. 

6   Precision Improvements 

The  effectiveness  of  the  shot  detection  methods  may  be  improved  when  the 
specificity of a given movie category is taken into account. It was observed that the 
lengths of shots vary in different movie categories. The more dynamic the movie and 
the  wider  the  framing,  the  shorter  the  shots  are,  the  more  static  the  content  and 
narrower  the  framing,  the  longer  the  shots  are.  The  main  assumption  for  further 
software  improvements  is  that  shots  are  not  shorter  than  one  second  in  dynamic 
adventure movie and not shorter than two seconds in other categories of movies. 

6.1   Faulty Shot Cuts Reduction in Adventure Movie 

The  recall  of  the  segmentation  process  of  an  adventure  movie  using  pixel  pair 
differences technique was sufficiently high (0.93), but its precision, for example with 
parameters  30  and  50  (Tab.  1),  was  rather  not  satisfactory  (0.69).  It  was  due  to  the 
fact that in the adventure movie the movie action is very dynamic. As it was already 
mentioned  in  such  movies  we  observe  dynamic  camera  movements,  also  dynamic 
object movements on the scene, rich colors, contrast quickly changing, changing light, 
and many effects. This specificity promotes the detection of faulty shot cuts or cross 
dissolve effects. 

Shots  in  an  adventure  movie  are  very  short  but  practically  not  shorter  than  one 
second. So, the first procedure implemented to improve the precision was the filtering 
of shots detected during the segmentation process. All shots shorter than one second 
have been not accepted. It leads to the significant increase of precision (from 0.69 to 
0.95) with rather negligible decrease of recall (from 0.93 to 0.89). 

 
 
Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

135 

Table  7.  Comparison  of  the  effectiveness  of  shot  cuts  detection  without  and  with  additional 
filtering  for  minimal  length  of  shots  equal  to  one  second  in  temporal  segmentation  process 
based on pixel pair differences technique 

Cuts 

Effectiveness 

C 

CC  OC 

FC 

R 

P 

Without filtering 

132 

91 

7 

41 

0.93 

0.69 

With additional filtering 

92 

87 

11 

5 

0.89 

0.95 

6.2   Faulty Shot Cuts and Cross Dissolves Reduction in Documentary Video 

The recall of the segmentation process of a documentary video using twin threshold 
comparison  technique  was  very  high  (0.98),  but  its  precision,  for  example  with 
parameters 5 and 20 (Tab. 4), was relatively low (0.50). 

Shots in a documentary video are not so short as in the case of adventure movies. 
Therefore,  in  the  procedure  implemented  to  improve  the  precision  only  shots  
longer  than  two  second  have  been  accepted.  It  also  leads  to  the  significant  increase  
of  precision  (from  0.50  to  0.94)  with  rather  slight  decrease  of  recall  (from  0.98  to 
0.96). 

Table 8. Comparison of the effectiveness of shot cuts and cross dissolve detection without and 
with  additional  filtering  for  minimal  length  of  shots  and  dissolve  equal  to  two  second  in 
temporal segmentation process based on twin threshold comparison technique 

Cuts 

Cut detection 
effectiveness 

Cross dissolve effects 

Cross dissolve 
detection 
effectiveness 

C 

CC  OC  FC 

R 

P 

D  CD  OD  FD 

R 

P 

Without filtering 

56 

44 

1 

12 

0.98 

0.79 

47 

8 

0 

39 

1.00 

0.17 

With additional filtering 

45 

43 

2 

2 

0.96 

0.96 

9 

8 

0 

1 

1.00 

0.89 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136 

K. Choroś 

The  increase  of  precision  of  cut  detection  is  significant  (from  0.79  to  0.96),  but 
what is much more surprising the increase of precision of cross dissolve detection is 
extremely high (from 0.17 to 0.89). 

6.3   Faulty Shot Cuts in Animal Video 

The  recall  of  the  segmentation  process  of  an  animal  video  using  likelihood  ratio 
method  was  sufficiently  high  (0.96),  its  precision,  for  example  with  blocks  8x6  and 
parameters 2, 40 (Tab. 2), was quiet good (0.79). 

The likelihood ratio method enables us to detect only shot cuts. Nevertheless, cross 
dissolves  are  rare  in  an  animal  video.  To  speed  the  computing  time  the  binary 
algorithm  has  been  implemented  to  find  an  adequate  frame.  In  the  binary  algorithm 
the step of 16 frame was applied. Such a procedure led not only to the increase of the 
precision  (from  0.79  to  0.97)  without  changing  the  recall  but  also  to  the  significant 
diminution of computing time (eight times). 

Table  9.  Comparison  of  the  effectiveness  of  shot  cuts  detection  without  and  with  additional 
filtering in temporal segmentation process based on likelihood ratio method 

Cuts 

Cross dissolve effects 

Effectiveness of cut 
and cross dissolve 
detection 

Processing 
time 

C 

CC  OC  FC 

D  CD  OD  FD 

R 

P 

PT 

Without filtering 

82 

65 

1 

17 

0 

0 

2 

0 

0.96 

0.79 

12:08 

With additional filtering 

67 

65 

1 

2 

0 

0 

2 

0 

0.96 

0.97 

1:33 

6.4   Faulty Shot Cuts in Documentary Video 

The  same  change  in  cut  detection  procedure  has  been  implemented  to  documentary 
video category tested by histogram difference method. 

The histogram difference method enables us to detect only shot cuts.  Nevertheless, 
cross dissolves are rare in an animal video. To speed the computing time the binary 
algorithm  has  been  implemented  to  find  an  adequate  frame.  In  the  binary  algorithm 
the step of 16 frame was applied. Such a procedure led not only to the increase of the 
precision  (from  0.75  to  0.92)  without  changing  the  recall  but  also  to  the  significant 
diminution of computing time (even ten times). 

 
 
 
 
 
Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

137 

Table 10. Comparison of the effectiveness of shot cuts detection without and with additional 
filtering in temporal segmentation process based on histogram difference method 

Cuts 

Cross dissolve effects 

Effectiveness of cut 
and cross dissolve 
detection 

Processing 
time 

C 

CC  OC  FC 

D  CD  OD  FD 

R 

P 

PT 

Without filtering 

60 

44 

1 

16 

3 

3 

5 

0 

0.89 

0.75 

4:07 

With additional filtering 

48 

44 

1 

4 

3 

3 

5 

0 

0.89 

0.92 

0:25 

7   Conclusions 

The temporal segmentation process leads to the partition of a given video into a set of 
meaningful  and  individually  manageable  segments,  which  then  can  serve  as  basic 
units  for  indexing.  Video  has  temporal  properties  such  as  camera  motion,  object 
movements  on  the  scene,  sequential  composition,  and  interframe  relationships.  An 
effective  segmentation  technique  is  able  to  detect  not  only  abrupt  changes  but  also 
gradual scene changes, such as fade and dissolve transitions. 

The  nature  of  movies,  mainly  the  style  of  video  editing  has  an  influence  on  the 
effectiveness  of  temporal  segmentation  methods.  In  the  experiments  and  tests 
performed the effectiveness of four methods was analyzed for five different categories 
of movie: TV talk-show, documentary movie, animal video, action & adventure, and 
pop music video. The cuts have been recognized as well as cross dissolve effects. 

The  tests  have  shown  that  the  specific  nature  of  the  style  of  video  editing  for 
different video categories has an important influence on the effectiveness of temporal 
segmentation methods, fundamental methods of video indexing. Taking into account 
these specific features for different movie categories we can significantly reduce the 
number of faulty detected cuts and faulty detected cross dissolves effects. 

The tests have been performed using the  Automatic Video Indexer software. The 
Automatic  Video  Indexer  AVI  [10]  is  a  research  project  investigating  tools  and 
techniques of automatic video indexing, mainly based on automatic content analysis 
for retrieval systems. The main goal of the project is to develop efficient techniques of 
content-based video indexing and retrieval, such as temporal segmentation of videos, 
key-frames  selection,  shot  analysis  and  clustering,  shot  retrieving,  repetitive  editing 
pattern identification [9]. 

Two  main  modules  have  been  already  implemented  in  the  Automatic  Video 
Indexer: the Automatic Shot Detector ASD responsible for temporal segmentation as 
well  as  for  shot  categorization  and  the  Automatic  Scene  Analyzer  ASA  responsible 
for shot clustering, scene detection, and content analysis of scenes. The next parts of 
the AVI software will classify scenes and will detect important events and people in 

 
 
 
 
 
 
138 

K. Choroś 

videos.  The  automatic  extraction  of  the  most  interesting  highlights  in  videos  will 
facilitate browsing and retrieval of video. 

Content-based  indexing  and  retrieval  of  videos  is  all  the  time  a  research  topic  of 
increasing  importance,  sometimes  difficult  but  surely  fascinating.  It  is  a  scientific 
problem as well as practical task leading to the development and to the application of 
efficient  methods  of  organization,  indexing,  browsing,  and  retrieval  of  videos  in 
archives using high-level semantic features. 

References 

1.  Barbu, T.: Novel automatic video cut detection technique using Gabor filtering. Computers 

and Electrical Engineering 35, 712–721 (2009) 

2.  Bertini,  M.,  Del  Bimbo,  A.,  Pala,  P.:  Content-based  indexing  and  retrieval  of  TV  news. 

Pattern Recognition Letters 22, 503–516 (2001) 

3.  Chasanis,  V.,  Likas,  A.,  Galatsanos,  N.:  Simultaneous  detection  of  abrupt  cuts  and 
dissolves in videos using support vector machines. Pattern Recognition Letters 30, 55–65 
(2009) 

4.  Chena, L.-H., Laib, Y.-C., Liaoc, H.-Y.M.: Movie scene segmentation using background 

information. Pattern Recognition 41, 1056–1065 (2008) 

5.  Cheong, L.-F.: Scene-based shot change detection and comparative evaluation. Computer 

Vision and Image Understanding 79, 224–235 (2000) 

6.  Choroś,  K.,  Gonet,  M.:  Effectiveness  of  video  segmentation  techniques  for  different 
categories of videos. In: Zgrzywa, A., et al. (eds.) New Trends in Multimedia and Network 
Information Systems, pp. 34–45. IOS Press, Amsterdam (2008) 

7.  Choroś, K.: Cross dissolve detection in a temporal segmentation process for digital video 
indexing and retrieval. In: Grzech, A., et al. (eds.) Information Systems Architecture and 
Technology: Information Systems and Computer Communication Networks, pp. 189–200. 
Oficyna Wydawnicza Politechniki Wrocławskiej, Wrocław (2008) 

8.  Choroś,  K.:  Video  shot  selection  and  content-based  scene  detection  for  automatic 
classification of TV sports news. In: Tkacz, E., Kapczynski, A. (eds.) Internet – Technical 
Development and Applications. AISC, vol. 64, pp. 73–80. Springer, Heidelberg (2009) 
9.  Choroś,  K.,  Pawlaczyk,  P.:  Content-based  scene  detection  and  analysis  method  for 
automatic classification of TV sports news. In: Szczuka, M., Kryszkiewicz, M., Ramanna, 
S.,  Jensen,  R.,  Hu,  Q.  (eds.)  RSCTC  2010.  LNCS  (LNAI),  vol. 6086,  pp.  120–129. 
Springer, Heidelberg (2010) 

10.  Choroś, K.: Video structure analysis and content-based indexing in the Automatic Video 
Indexer  AVI.  In:  Nguyen,  N.T.,  Zgrzywa,  A.,  Czyżewski,  A.  (eds.)  Advances  in 
Multimedia  and  Network  Information  System  Technologies.  AISC,  vol. 80,  pp.  79–90. 
Springer, Heidelberg (2010) 

11.  Del  Bimbo,  A.:  Visual  Information  Retrieval.  Morgan  Kaufmann  Publishers,  San 

Francisco (1999) 

12.  Jung, K., Kim, K.I., Jain, K.A.: Text information extraction in images and video: a survey. 

Pattern Recognition 37, 977–997 (2004) 

13.  Koprinska,  I.,  Carrato,  S.:  Temporal  video  segmentation:  A  survey.  Signal  Processing: 

Image Communication 16, 477–500 (2001) 

14.  Küçüktunç,  O.,  Güdükbay,  U.,  Ulusoy,  Ö.:  Fuzzy  color  histogram-based  video 

segmentation. Computer Vision and Image Understanding 114, 125–134 (2010) 

Reduction of Faulty Detected Shot Cuts and Cross Dissolve Effects 

139 

15.  Lefèvre, S., Holler, K., Vincent, N.: A review of real-time segmentation of uncompressed 
video  sequences  for  content-based  search  and  retrieval.  Real-Time  Imaging 9,  73–98 
(2003) 

16.  Lew,  M.S.,  Sebe,  N.,  Gardner,  P.C.:  Principles  of  visual  information  retrieval.  Springer, 

London (2001) 

17.  Lew,  M.S.,  et  al.:  Content-based  multimedia  information  retrieval:  state  of  the  art  and 
challenges.  ACM  Transactions  on  Multimedia  Computing,  Communications,  and 
Applications 2, 1–19 (2006) 

18.  Money, A.G., Agius, H.: Video summarisation: A conceptual framework and survey of the 
state of the art. J. of Visual Communication and Image Representation 19, 121–143 (2008) 
19.  Porter, S., Mirmehdi, M., Thomas, B.: Temporal video segmentation and classification of 

edit effects. Image and Vision Computing 21, 1097–1106 (2003) 

20.  Smeaton, A.F., Browne, P.: A usage study of retrieval modalities for video shot retrieval. 

Information Processing and Management 42, 1330–1344 (2006) 

21.  Smeaton,  A.F.:  Techniques  used  and  open  challenges  to  the  analysis,  indexing  and 

retrieval of digital video. Information Systems 32, 545–559 (2007) 

22.  Yu,  J.,  Srinath,  M.D.:  An  efficient  method  for  scene  cut  detection.  Pattern  Recognition 

Letters 22, 1379–1391 (2001) 

 
Using Knowledge Integration Techniques for User  
Profile Adaptation Method in Document Retrieval 
Systems 

Bernadetta Mianowska and Ngoc Thanh Nguyen 

Wroclaw University of Technology,  
Wyb. Wyspianskiego 27, 50-370 Wroclaw, Poland 
Bernadetta.Mianowska@pwr.wroc.pl 
Ngoc-Thanh.Nguyen@pwr.edu.pl 

Abstract.  Knowledge  integration  is  a  very  important  and  useful  technique  to 
combine  information  from  different  sources  and  different  formats.  In  the 
Information  Retrieval  field,  integration  of  knowledge  can  be  understood  in 
many  ways.  In  this  paper  a  method  of  user  personalization  in  information 
retrieval  using  integration  technique  is  presented.  As  user  delivers  new 
knowledge  about  himself,  this  knowledge  should  be  integrated  with  previous 
knowledge  contained  in  the  user  profile.  Our  proposed  method  is  analyzed  in 
terms of integration postulates. A list of desirable properties of this method and 
its  proofs  are  presented.  Simulated  experimental  evaluation  has  shown  that 
proposed method is effective and the updated profile is proper since it is closer 
and closer to the user preferences. 

Keywords: knowledge integration postulates, user profile adaptation. 

1   Introduction 

Knowledge  integration  is  used  very  often  for  user  personalization  in  information 
retrieval  systems.  Information  about  user  interests,  habits,  preferences,  etc.  can 
change  with  in  time.  In  many  systems  user  profiles  are  built  to  formalize  this 
knowledge  about  the  user.  A  problem  arises  when  users’  interests  are  changing  and 
the  system  needs  to  have  up-to-date  information.  New  knowledge  should  be  joined 
with the previous knowledge. In this context, a user profile adaptation method can be 
treated  as  a  kind  of  integration  of  knowledge  about  the  user.  Integrated  knowledge 
about  the  user  should  satisfy  a  set  of  requirements  to  keep  the  consistency  of 
knowledge  state.  In  particular,  the  following  intuitive  postulates  derived  from 
standard  integration  postulates  should  be  met:  when  user  starts  to  be  interested  in 
some concepts, the importance of these concepts should increase in user profile, when 
user is not interested in some terms, these terms should be forgotten with time [11]. 

Nowadays,  the  problem  of  knowledge  integration  is  getting  more  important 

because there exist many knowledge sources that cannot be unified in a simple way.  

In  information  retrieval  domain  this  problem  is  even  more  visible  regarding  the 
following  aspects:  information  obtained  from  different  search  engines  has  different 
formats - then the integration process is connected with merging the structures, and it 

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 140–156, 2011. 
© Springer-Verlag Berlin Heidelberg 2011 

Using Knowledge Integration Techniques for User Profile Adaptation Method 

141 

often  happens  that  they  have  different  semantics,  thus  some  inconsistency  between 
them can appear. 

Knowledge  integration  can  be  understood  in  many  ways.  On  the  most  general 
level, knowledge integration is defined in [22] as “the task of creating a new piece of 
knowledge  on  the  basis  of  other  different  pieces  of  knowledge”.  This  task  is 
connected with data inconsistency problem – in these terms integration processes can 
be  treated  in  two  ways:  integration  of  different  knowledge  bases  and  integration  of 
different knowledge representations but on different levels of representation. A more 
popular  approach  is  to  add  new  knowledge  to  the  previous  knowledge  in  such  way 
that the updated knowledge base is still consistent.  

The aim of this paper is to check if desirable properties of the proposed method of 
integrating the previous knowledge included in user profile with the new knowledge 
delivered  to  the  system  by  user  activity  observations  are  satisfied.  Several  intuitive 
properties  are  proposed  and  their  proofs  are  presented.  To  find  out  whether 
a developed system of user profiling is effective in term of distance measure between 
user preferences and adapted user profile, experimental evaluation has been done. 

The  paper  is  organized  as  follows:  in  Section  2  we  present  the  related  works 
connected with knowledge integration in different approaches. Section 3 describes the 
way  of  integrating  new  knowledge  about  the  user  with  the  previous  knowledge.  In 
Section  4  we  analyze  several  properties  of  the  method  in  term  of  integration 
knowledge postulates. Experimental evaluation and results are contained in Section 5. 
In the last Section conclusions and future works are presented. 

2   Related Works 

Integration processes are required in any system where there is more than one source 
of  information.  Knowledge  integration  is  used  in  many  domains  such  as  multiagent 
systems.  In  this  process  agents  have  different  observations  and  in  order  to 
communicate  and  cooperate  they  need  to  establish  the  same  consistent  knowledge 
state [22]. Authors of [28] propose also integration in law domain to support decision 
making processes. 

Aamodt  and  Nygard  [1]  present  the  integration  problem  in  the  context  of  data, 
information  and  knowledge  level  in  computer-based  decision  support  system.  They 
define these concepts in the context of decision making as follows: 
•  Data  are  syntactic  entities  -  patterns  with  no  meaning;  they  are  input  to  an 

• 

interpretation process, i.e. to the initial step of decision making; 
Information  is  interpreted  data  -  data  with  meaning;  it  is  the  output  from  data 
interpretation  as  well  as  the  input  to,  and  output  from,  the  knowledge-based 
process of decision making; 

•  Knowledge  is  learned  information  -  information  incorporated  in  an  agent's 
reasoning resources, and made ready for active use within a decision process; it is 
the output of a learning process. 

They also indicate the role of knowledge: to play the active part in the processes of 
transforming  data  into  information,  deriving  other  information  and  acquiring  new 
knowledge  -  i.e.  to  learn.  The  paper  presents  a  few  case-based  approaches  to 
integration data, information and knowledge. 

 
142 

B. Mianowska and N.T. Nguyen 

Brewka and Eiter [5] present the application of integration on information level to 
knowledge  mediation.  They  claim  that  mediation  of  data  and  knowledge,  which 
provides services on an abstract level, go far beyond technical aspects of integration 
and  should  take  into  account  different  aspects  such  as  situation  awareness,  social 
context and goals of a user. 

Knowledge  management  also  applied  integration  techniques  to  obtain  more 
information  [2,  7,  12].  Huge  heterogeneity  of  knowledge  sources  coming  from  the 
system  and  from  people  is  the  main  problem  in  this  area.  A  similar  approach  is 
presented  in  [23]  where  explicit  and  tacit  knowledge  is  joined.  Tacit  knowledge 
includes the beliefs, perspectives and mental models so ingrained in a person’s mind 
that they are taken for granted. On the other hand, explicit knowledge is “knowledge 
that can be expressed formally using a system of language, symbols, rules, objects, or 
equations,  and  can  thus  be  communicated  to  others;  it  consists  of  quantifiable  data, 
written procedures, universal principles, mathematical models, etc”. Integration in this 
terms can be treated as formalization of tacit knowledge. 

Merugu  and  Ghosh  [15]  consider  integration  of  knowledge  coming  from  many 
heterogeneous  data  sources  in  the  term  of  probabilistic  model.  They  provide  a 
mathematical  formulation  of  the  model  integration  problem  using  the  maximum 
likelihood and maximum entropy principles and describe iterative algorithms that are 
necessary  to  converge  to  the  optimal  solution.  The  empirical  results  for  various 
learning  tasks  such  as  clustering  and  classification  of  different  kinds  of  datasets 
consisting of continuous vector, categorical and directional attributes show that high 
quality  global  models can be obtained  without  much loss of privacy. Privacy in this 
context  is  connected  with  his  own  data  source  distributions.  Integration  process  is 
divided into two subproblems: learning probabilistic models from the local data while 
adhering to information-theoretic privacy constraints and integrating the local models 
effectively  to  obtain  an  appropriate  “global”  model.  This  separation  of  privacy  and 
integration  issues  also  allows  the  individual  parties  to  use  their  own  means  of 
sanitizing the local models during the local learning process. 

In  many  cases  knowledge  integration  can  be  considered  on  the  structural  and 
semantic levels. This problem is more precisely defined using particular structure of 
knowledge  but  there  still  remains  problem  on  the  semantic  level.  The  most  popular 
integration on the structure level are trees, for example XML and DTD  integrations 
[4, 13]. 

A  similar  approach  of  knowledge  integration  is  presented  in  the  terms  of 
classification  problem  and  taxonomy  integration  [29].  The  Rocchio  algorithm  [25] 
and  the  Naïve  Bayes  algorithm  [20]  have  been  applied  to  the  ontology  mapping 
problem.  Ontology-based  knowledge  integration  is  also  presented  by  Chen  [6]. 
Ontology integration includes two phases: ontology mapping and ontology merging. 
In  the  ontology  integration,  ontology  mapping  is  used  initially  to  identify  similar 
knowledge concepts between local ontology and global ontology, and then to become 
a newly integrated global ontology through ontology merging. 

Another  interpretation  of  knowledge  integration  is  presented  in  [3]  where 
knowledge integration is applied to customer recommendation. An integrative model 
for  better  predictions  and  classifications  is  proposed.  It  efficiently  combines  the 
currently-in-use  statistical  and  artificial  intelligence  models,  e.g.  by  integrating  the 
models such as association rule, frequency matrix and tree-based models. The results 

Using Knowledge Integration Techniques for User Profile Adaptation Method 

143 

of  the  experiments  show  that  the  performance  of  integrated  model  is  superior  the 
other one. 

In information retrieval domain, knowledge integration is also very useful technique 
[8]. Suzuki et al. [26] propose integration of results’ list obtained from different search 
engines. The position of result in every list is taken into account in modified Shannon 
measure.  As a result they prepare final list of results to present to the user. Ding [10] 
presents  a  method  of  metadata  integration  in  digital  libraries  environment  in  which 
different  library  have  different  formats  of  metadata.  Heterogeneity  of  source 
descriptions is the main difficulty to realize integration process. 

Riano  et  al.  [24]  propose  the  model  of  knowledge  management  coming  from  the 
Internet. They also claim that the main problem of integration in such heterogeneous 
environment  is  that  knowledge  is  not  always  easily  expressed  in  terms  of  a  formal 
representation language (tacit knowledge). 

Our researches are connected with personalization in information retrieval systems. 
Our  previous  works  present  the  personalization  of  information  searching  domain  in 
the context of agent-based Personal Assistant [16, 17]. A model of user profile and an 
adaptation  method  have  been  proposed  in  [19].  Due  to  the  fact  that  experimental 
validation  of  our  algorithms  will  take  a  long  time,  we  decided  to  prepare  the 
simulation  environment,  in  particular  to  simulate  user  behaviour  in  information 
retrieval tasks. The algorithm for judging if the obtained document is relevant to the 
user query and his information needs was proposed in [18]. Based on the information 
about user interests and his activities in the system  we try to keep his profile up-to-
date. As a result in some fixed period of time the profile is updated. The main aim of 
profile  adaptation  method  is  to  decrease  the  distance  between  user  profile  and  his 
preferences  in  subsequent  adaptation  steps.  Preliminary  experimental  evaluations 
have shown that proposed methods are effective in this case. 

The  next  part  of  researches  refers  to  formal  analysis  of  developed  method, 
especially the important task is to show that when we have a new information about 
the  user  (from  his  activity  observation)  we  can  integrate  it  with  the  knowledge 
obtained previously and the result of the integration process is better (built profile is 
closer to real user interests). 

integration 

In  this  paper  knowledge  integration  is  understood  as  a  task  of  combining  new 
knowledge  about  user  activities  with  the  previous  one,  saved  in  his  profile.  In  user 
personalization  domain  knowledge 
important  during  gathering 
information about user interests, habits, etc. Information about user can be divided into 
two parts: the first one connected with his preferences (usually obtained in indirect way 
from the user) and the second – usage data – information about user activities (in this 
case,  list  of  documents  that  were  useful  for  the  user).  Combining  these  pieces  of 
information  in  user  profile  is  important  task  to  keep  up-to-date  knowledge  about  the 
user. This new knowledge can be treated as tacit knowledge defined in [23] that should 
be formalized and added to the existing knowledge state in user profile. 

is 

3   Knowledge Integration in User Profile Building 

In this section  we present the knowledge integration process  in the case of building 
user  profile  in  information  retrieval  domain.  The  document  representation,  user 

 
144 

B. Mianowska and N.T. Nguyen 

profile structure and a method of knowledge integration are presented. When a user is 
active in the system, his profile is built and updated according to the proposed method 
of  integrating  new  knowledge  about  the  user  with  previous  knowledge  contained  in 
user profile. 

3.1   Document Representation 

We assume the following representation of document: each document is described by 
its title and a set of complex terms (here called ‘appellations’): 

d =

tit
(

aa
,{,
1

2

,...,

La

})

(1) 

where  tit  is  the  title  of  the  book  and  L  is  the  number  of  appellations  for  considered 
document and each appellation is constructed as follows: 

a

l

=

(

a

l
m

,

a

l
wg

,

a

l
wh

,

a

l
s

 )

f

or

l

∈

,...,1{

L
}

(2) 

and 

l
a,a
m

l
wg

a,

l
wh

a,

l
s

 are respectively: the main term (with different wording but with 

the same meaning), sets of broader terms, narrower terms and correlated terms (“see 
also”).  Correlated  terms  are  often  used  to  mark  that  these  terms  can  be  loosely 
connected  with  the  main  term  but  this  relationship  is  not  as  strong  as  synonym. 
Selected documents may have some of these terms undefined. 

The  most  important  terms  are  those  in  the  set  of  main  terms  –  they  are  the  most 
fitted keywords that describe the document. The rest of terms (broader, narrower and 
correlated)  are  also  useful  –  they  help  to  place  the  right  meaning  of  the  main  term, 
especially when the main term is ambiguous. 

An exemplary document is presented as follows: 

Title: Algorithms and data structures: selected issues 
Authors: Zbigniew J. Czech, Sebastian Deorowicz, Piotr Fabian 
Description: 

Algorithms – handbook 
Data Structures – handbook 
Discrete Mathematics 

Algorithms,  Data  Structure  and  Discrete  Mathematics  are  basic  complex  terms 
(some  additional  specification  is  added  like  “handbook”  to  specify  that  this  is  a 
handbook about algorithms and data structures). The appellation “Data Structure” has 
the following form: 

am = {Data transforming, Data organization}; 
awg = {Computer science, Databases, Files}; 
awh = {Abstract data types, Data}; 
as = {Data transformation}. 

3.2   User Profile 

According to Danilowicz [9] a profile of a user is understood as the representation of 
his (her) information needs, which are assumed to be relatively stable in some period 
of  time.  In  traditional  information  retrieval  systems,  a  user  expresses  his  (her) 

                                                 
                                    
 
 
 
 
Using Knowledge Integration Techniques for User Profile Adaptation Method 

145 

temporary information needs only by means of queries, which often are insufficient to 
establish the relevance degree of documents in a database. Experiments have proved 
that  different  users  may  expect  different  answers  for  the  same  query,  and  the  same 
user  for  the  same  query  may  expect  different  answers  in  different  periods  of  time. 
This  means  that  the  information  preferences  (or  profile)  of  a  user  should  be 
changeable  in  retrieval  processes  [21].  It  implies  that  the  abilities  of  creation  and 
modification of user profiles should be the most important feature of an information 
agent.  

As presented in our previous work [19] the user profile can be presented as a tree 
structure  –  acyclic  and  coherent  graph  G  =  (V,  E),  where  V  is  a  set  of  nodes 
containing the vector of weighted terms describing concepts with their synonyms and 
a time stamps when the user was interested in those concepts for the last time. The E 
is a set of edges representing “is a” relation between two nodes taken from WordNet 
ontology  [27].  If  two  nodes  v1  and  v2  are  connected  by  edges  e(v1,v2),  it  means  that 
concept  from  node  v2  is  a  kind  of  concept  in  node  v1.  Terms  contained  in  the  same 
concepts are synonyms. Figure 1 presents an example of user profile structure. 

C

Ci=<ci, si>
ci – set of weighted synonyms describing i-th 

C1

C2

is-a

C3

is-a

C4

is-a

C5

(i)
, v
1

concept:
(i)
(i)
c (cid:32)
t
{(
t
( ),
2
i
1
(i)
jt – j-th synonym;
2,1{
(i)
jv – weight of j-th synonym
si – time stamp of last appearance of concept ci

t
( ,… ),

(i)
2
j (cid:143)

,...,

, v

, v

)}

(i)
n
i

(i)
n
i

in

}

or its subconcepts in user’s query

Fig. 1. Structure of user profile 

The  root  of  this  tree  is  not  a  concept  in  WordNet  meaning  but  only  an  artificial 
node. The nodes of the first level (roots’ children) are the main areas of user interests 
or concepts connected with them. The profile of the user with many different interests 
will be broad (many children of the root) and the deeper the user profile is, the more 
specialized information about the user the system will have. 

The terms in the user profile are obtained from users’ queries. Term in this context 
means a word or a few words used by the user to express his information needs. The 
intuition  in  this  situation  is  that  if  the  user  is  asking  about  some  information,  he  is 
interested in it and even if there are other terms connected with users’ ones, it is not 
obvious that the user is interested also in those additional terms. 

The  procedure  of  building  the  profile  structure  assumes  that  when  a  new  term 
occurs  in  user  queries,  it  is  added  to  the  user  profile  to  the  proper  place  e.g.  when 
a new  term  is  a  hypernym  term  of  a  term  in  user  profile,  this  new  term  is  added  as 
a descendant of existing term in user profile. The timestamps of appropriate concepts 
are also added or actualized. 

 
 
146 

B. Mianowska and N.T. Nguyen 

3.3   User Profile Adaptation 

The main objective of building the user profile is to integrate all facts and figures of 
the  user,  including  the  newly  gathered  information  (knowledge)  and  the  knowledge 
accumulated in the previous version of the profile.  

The integration process can be considered on two different levels: structural when 
new  term  is  added  or  deleted  (this  situation  is  described  above)  and  on  the  level  of 
terms and theirs weights. When the user enters a few queries and selects the relevant 
documents  from  the  obtained  results,  his  profile  should  be  adapted  according  to  the 
new knowledge about his interests. If user queries contain terms that were previously 
in  his  profile,  its  weight  should  be  updated  and  if  a  new  term,  that  was  not  used 
before, occurs in user query, then the term should be added to the user profile at the 
appropriate place and its weight is calculated using the proposed procedure. 

User information retrieval process (e.g. entering the queries, obtaining the results 
and selecting the needed documents) is divided into sessions. A session is set of user 
activities  from  login  to  logout  of  the  system.  In  every  session  user  submits  a  few 
queries  and  to  each  query  he  obtains  a  list  of  documents.  In  practical  information 
retrieval  system  user  chooses  the  documents  that  are  relevant  to  his  information 
needs.  Each  document  is  described  by  the  title  and  a  set  of  appellations.  In  our 
system, after each session for each term, the mean value of its weights is calculated. 

•  Documents set from a single session with appropriate query:  

sD
)(

=

{(

q

)(
s
i

d
 ,

(s)
i

j

)}

(3) 

where  s  is  session’s  number,  i  is  query’s  number  and  ij  is  a  number  of  documents 
relevant to query 
; 
•  Weight of tj-th term after s-th session: 

)(s
iq

w

s
)(
d

(
t

)

j

=

1
n

s

n

s

∑

=
1

i

w

s
)(
d

i

(
t

)

j

(4) 

where 

(s)
tw
( j
d

)

 is average value of weights in documents set and 

w

()(
s
t
d

i

j

)

 is weight 

of term in single document in current session. 

The  main  objective  of  calculated  above  values  is  to  get  know  if  the  user  is 
interested in a particular term and if (and in what way) his interests are changing. The 
most  popular  measure  of  interest  change  is  calculating  the  difference  between 
previous and current values of interest level (weights calculated using formula (4)). In 
a  normalized  interval  a  big  value  of  this  difference  can  mean  that  user  dramatically 
changes  his  preferences  while  it  is  not  obvious  that  small  changes  mean  the  small 
changes of interests, e.g. the difference equal to 0.1 in the case when current weight is 

0.7  (

w

()(
s
t
d

j

)

=  0.7)  and  previous  weight

w

()(
s
t
d

j

)

  was  equal  to  0.6  has  different 

meaning  then  in  the  case  when  the  current  weight  is  0.2  and  previous  one  was  0.1. 
Due to this fact we propose a measure of relative change of user interests between the 
sessions. 

                                                    
                                                
Using Knowledge Integration Techniques for User Profile Adaptation Method 

147 

•  Relative change of user interests in term 

jt

 after the session s:  

)(
sw
t

j

=

w

)(
s
d

i

(

t

)

j

−

w

(
s
d

i

−
)1

(
t

)

j

−
)1

w

(
s
d

i

(
t

)

j

w

)(
s
d

i

(
t

j

,)

otherwise

⎧
⎪
⎪
⎨
⎪
⎪
⎩

,

wif

−

)1

(
s
d

i

(
t

)

j

>

0

(5) 

where 

w

()(
s
t
d

i

)

j

 is a weight of term tj after current session and 

w

−
()1(
s
t
d

i

j

)

 is a weight 

of term tj after previous session. 

Using the measure proposed in formula (6), the system can differentiate two cases 
described above: when the previous weight was 0.6 and current equals to 0.7 system 
know  that  user  is  still  interested  in  this  term  while  in  the  second  case  (previous 
weight = 0.1 and current weight = 0.2) the relative change is high (equals to 1) what 
can  mean  that  level  of  user  interests  in  this  term  is  significantly  greater.  The 
disadvantage of this measure is that its values are not normalized. 

The knowledge obtained using proposed method is a base to keep the user profile 
up-to-date. The relative changes of user interests in each term from user queries have 
influence on the adaptation in knowledge integration process. 

The new weight of term tj in user profile in the session s+1 is calculated as follows: 

sw
(
t

j

⋅=+
α

)1

sw
)(
t

j

−+
1(

α
)

⋅

⎛
⎜
⎜
⎜
⎝

+

1

exp

(

A

Δ⋅−

CswB
t

)(

+

j

⎞
⎟
⎟
⎟
⎠

)

                    (6) 

where 

( +sw
jt
]1,0[∈α
are parameters that should be attuned in experimental evaluation. 

  is  weight  of  term  tl  in  user  profile  in  session  s+1;  A,  B,  C  and 

)1

In  the  next  section  the  intuitive  postulates  of  knowledge  integration  are  analyzed 

and proofs of the required properties are presented. 

3.4   Example 

Let  consider  the  following  example  of  user  query  (simplifying  to  conjunction  of  
the  keywords)  “theory  AND  knowledge AND learning”. The results obtained in the 
data-base  of  Main  Library  of  Wroclaw  University  of  Technology  are  gathered  in 
Table 1. 

Based  on  the  series  of  user  queries  and  results  that  user  has  treated  as  relevant,  
the  procedure  of  building  the  profile  and  updating  it  is  applied.  An  example  of 
weights  values  for term  “theory” has been considered. This  term  was absent in  user 
queries in the first and second blocks of sessions and in the third block term “theory” 
has appeared and till the end of presented blocks interval, user was interested in this 
term. 

 
Δ
                     
 
148 

B. Mianowska and N.T. Nguyen 

User query
theory 
AND
knowledge 
AND
learning

Table 1. A sample of user query and results 

Description of documents obtained for query
Title: Futures thinking, learning, and leading: applying multiple intelligences 

to success and innovation

Authors: Irving H. Buchen.
Description:

Cultural pluralism in the work
Knowledge Management
Organization of self-learning

Title: The theory of organizational changes in the companies of the 
information age (some aspects and tools)
Author: Kazimierz Krupa.
Description:

Organizational innovations – management
Organization of self-learning
Knowledge management - Information systems

The  values  of  term  weights  in  user  profile  obtained  in  the  process  of  integration  
new  knowledge about  user activity and previous  knowledge saved in  user profile in 
the subsequent steps of updating are collected in Fig. 2. 

Weight of term "theory" in user profile 

0,12

0,1

0,08

0,06

0,04

0,02

0

term weight

1

2

3

4

5

6

7

8

9 10

No. of update 

Fig. 2. Weights of single term in user profile in 10 subsequent profile updates 

When the term was not used by the user, its weight  was equal to 0 and then user 
started to search for this term and till the 10th block of sessions he was interested in it. 
Through the blocks no. 3 – 6, weight of this term is increasing because the user was 
interested  in  this  term,  while  after  the  7th  block,  weight  is  not  growing  so  fast.  The 
reason of this situation is that user was not using this term in his queries frequently, 
but still he was interested in this term. If he would like to use the term “theory” in his 

 
 
 
Using Knowledge Integration Techniques for User Profile Adaptation Method 

149 

further queries more frequently, the weight would increase and when the user would 
not use it any more the weight would decrease in further blocks of sessions. 

4   Properties Analysis 

For the proposed model of user profile, some intuitive properties of adaptive functions 
that satisfy knowledge integration postulates were found to be true. Below we present 
the formal descriptions and proofs of them (weights are connected with only one term 
so the argument will be omitted to clarify notation): 

Property 1: When a new term occurs in user queries, then the weight of this term in 
the  user  profile  should  increase.  In  other  words,  increase  of  user  interests  should 
implicate increase of appropriate weight in user profile, i.e. 

If 

w

=−s
(
)1
di

0

 and  

)( ≠s
w
di

0

, then

sw
(

>+
)1

sw
)(

. 

Proof 

Let assume that function f is an updating component of function (eq. (6)) connected 
with the relative change of user interests (called updating function): 

(

swf
t

))(

l

=

+

1

exp

(

A
Δ⋅−

CswB
t

)(

l

+

                                  (7) 

)

Fig.  3.  The  plot  of  updating  function  component  f  connected  with  relative  change  of  user 
interests (eq. 8), parameters’ values: A=1; B=3 and C=-0,3 

This updating function contains some parameters that have influence to the update 
process.  During  previous  experiments  those  parameters  were  attuned  with  the 
following  values:  A=1;  B=3  and  C=-0,3.  The  plot  of  this  function  is  presented  in 
Figure  3.  For  the  purpose  of  properties  analysis  those  values  of  parameters  will  be 
assumed. 

If a term has not occurred in previous session, its weight equals zero: 

w

=−s
(
)1
di

0

 
 
Δ
 
 
150 

B. Mianowska and N.T. Nguyen 

and in current session this term occurs so its weight is greater than zero: 

then relative change is also greater than zero: 

w

)( >s
di

0

sw
)(
t
j

=

w

)( >
s
d

i

0

. 

The  value  of  tj-th  term  in  user  profile  in  next  session  will  be  calculated  using 
formula (7). The result – weight of considered term will be greater than zero: 

sw
(
t

j

−=+

1(

)1

α
)

⋅

⎛
⎜
⎜⎜
⎝

A
⋅
wB

+

1

exp

(-

+

C

)

)(
s
d

i

>

0

⎞
⎟
⎟⎟
⎠

This means that weight of the term increases in user profile when this term occurs in 
user interests (and user queries).                                                                                    ■ 

Property 2: When user is very interested in a term during more blocks of sessions, 
the weight of this term should not change too much. In other words, a small change of 
user  interests  in  one  term  between  two  blocks  should  implicate  a  small  change  of 
weight of this term in user profile, i.e. 

If 

w

−s
)1(
di

>>

0

 (

≅−

)1(
w s
di

f

)0(

) and 

)(
s
w
d

i

≅

−
)1(
s
w
d

i

, then 

sw
(

+

)1

≅

sw
)(

. 

Proof 

If user has been interested in term in previous blocks of sessions, the  weight of this 
term was significantly greater than zero (its value was comparable with the value of 
updating component function f at the point zero): 
≅−
)1
(
w s
di

−s
)1(
di

 and 

)0(

>>

w

0

f

and in current block  he is still interested in this  term, i.e. an interests degree of this 
term is approximately the same as in previous blocks: 

−
)1(
s
w
d
i
then relative change of weight is close to zero: 
)( ≅

)(
s
w
d

≅

0

i

. 

sw
jt

We  should  check  if  the  difference  between  weight  values  in  user  profile  in  two 
sequent sessions is also close to 0. We check if the following formula is met: 

Using formula (6), we should check if: 

sw
(

−+
)1

sw
)(

≅

0

α
(

⋅−
)1

sw
)(
t

j

−+
1(

α
)

⋅

⎛
⎜
⎜
⎜
⎝

+

1

exp

(

A

Δ⋅−

CswB
t

)(

+

j

After some simple transformations of eq. (9), we have: 

(8) 

(9) 

=

0

⎞
⎟
⎟
⎟
⎠

)

 
Δ
 
 
 
 
 
 
Δ
                                                   
                     
Using Knowledge Integration Techniques for User Profile Adaptation Method 

151 

1(

−

α
)

⋅

sw
)(
t

j

−=
1(

α
)

⋅

⎛
⎜
⎜⎜
⎝

+

1

exp

(

A
Δ⋅−

CswB
t

)(

j

+

⎞
⎟
⎟⎟
⎠

)

(10) 

and calculating the weight of the term tj we obtain the value that is approximately the 
same as value of updating component function f in the point zero: 

sw
)(
t

j

=

⎛
⎜
⎜⎜
⎝

+

1

exp

(

A
Δ⋅−

CswB
t

)(

j

+

≅

f

)0(

⎞
⎟
⎟⎟
⎠

)

(11) 

We have obtained that term’s weight is approximately equal to the value of updating 
component function f at point 0 (see eq. (7)). Therefore, the equation 
sw
)(
is satisfied.                                                                                                                     ■ 

sw
(

)1

+

≅

Property 3: When user is not interested in a term for a few blocks of sessions, weight 
of this term should slightly decrease with time (in subsequent moments of adaptation 
processes).  In  other  words  significant  decrease  of  user  interests  connected  with 
selected term should implicate decrease of weight value in user profile, i.e. 

If 

w

≠−s
)1(
di

0

 and  

)( =s
w
di

0

, then

sw
(

+

)1

<

sw
)(

. 

Proof 

If user has been interested in term and weight of this term was greater than zero: 

w

>−s
)1(
di

0

and  in  current  session  this  term  is  not  occurring  in  user  queries  (he  is  no  more 
interested in this term at this moment) 

then value of relative change calculated using formula (6) equals -1, i.e: 

)( =s
w
di

0

, 

sw
)(
t
j

=

−

0

−

)1

(
s
w
d
i
−
)1

t
(

)

j

−=

1

. 

(
s
w
d
The value of kl-th term in user profile in next session equals (according to eq. (6)): 

t
(

)

j

i

sw
(
t
j

⋅=+
α

)1

sw
)(
t
j

−+
1(

α
)

⋅

⎛
⎜⎜
⎝

+

1

A
+
(
CB

exp

⎞
⎟⎟
⎠

)

The  new  value  of  weight  in  user  profile 

( +sw
jt

)1

  is  smaller  than  the  previous  one 

)(sw
jt

 because the value of update function component f(-1) is close to 0 (compare 

Fig. 3.) and α<1, so required inequality 

sw
(

+

)1

<

sw
)(

is satisfied.                           ■ 

Presented  intuitive  properties  are  expected  and  satisfy  postulates  of  knowledge 
integration process. 

 
                        
                             
 
 
 
 
Δ
 
 
152 

B. Mianowska and N.T. Nguyen 

5   Experimental Evaluation 

To  evaluate  proposed  method  a  series  of  experiment  have  been  performed.  The 
adaptation  method  is  effective  if  the  distance  between  current  user  preferences  and 
built  and  updated  profile  is  decreasing  when  the  user  uses  the  system  (with  the 
growing number of updated steps). 

5.1   Data Set 

Similarly as in our previous work [8] we use a set of documents obtained from The 
Main  Library and Scientific  Center in Wroclaw University of Technology [14]. The 
formal document representation was described in Subsection 3.1. 

These  database  of  documents  contains  over  160 000  books  descriptions  and  the 
cardinality  of  appellations’  set  is  close  to  90 000.  Description  of  each  document 
(appellation)  has  at  least  one  main  term  and  usually  a  few  broader,  narrower  or 
correlated terms. 

5.2   User Behaviour Simulation 

Performing  the  experimental  evaluations  in  practical  system  would  be  a  time-
consuming  process  so  we  decide  to  prepare  simulation  environment.  We  propose  a 
simulation  of  user  behaviour  in  information  retrieval  situation  instead  of  using  real 
usage data. Such solution is better than using real user because we save time needed 
to  perform  such  experiment.  We  assume  that  user  has  10  weighted  terms  in  his 
preferences and they change randomly from session to session. Session is defined as 5 
user queries entered to the search engine.  After each block of 10 sessions, one term 
with  the  lowest  weight  is  replaced  by  a  new  one  with  randomly  selected  weight 
(weights are normalized). 

Here we present the plan of experiment similar to the experiments performed and 

described in [19]: 

1.  Determine  a  domain  and  set  of  terms  T  that  will  be  used  in  experiment. 

Determine user preferences Pref. 

2.  Generate  a  query  q  –  select  randomly  3  terms  from  user  preferences  set 
,  set  these  terms  in  proper  order  according  to  decreasing 

1

2

10

}

, t

, ...,t

{
t
weights and send query to search engine. 
aa
,{,
1

3.  Get documents descriptions 

d =

tit
(

results. 

4.  Calculate  probabilities 

dP i
(
user query using formula (12) for each document. 
dP i
(

5.  Mark  documents  that  meet  the  condition 

rel

q

)

|

=

‘relevant’; 

dD =
{

s
)(
1

,

d

s
)(
2

,

...,

d

)(
s
n

s

}

. 

,...,

La

})

2

 from the returned list of 

that  retrieved  document  is  relevant  to 

=

rel

|

∈
≥
ρρq
)

;

)1;0(

  as 

 
Using Knowledge Integration Techniques for User Profile Adaptation Method 

153 

6.  After  3  blocks  of  10  sessions  update  the  profile  using  adaptation  method 

presented in equation (6). 

7.  Calculate  the  distance  between  user  profile  and  user  preferences  using 

Euclidean distance between those two extended vectors. 

Proposed adaptation method takes into account user queries and relevant documents 
from  3  blocks  of  sessions.  In  [18]  we  have  proposed  mechanism  to  judge  the 
relevance of results obtained from search engine. 

(
dP

i

=

rel

|

q

)

=

1
j

∑

j

(
dP

i

=

rel

|

q

)

j

=

1
j

where: 

- 

qj is the j-th term from user query q 

L

1
∑ ∑
(
L

=
1

l

j

⋅
(
twv

j

l

))

(12) 

-  w(tl)  is  a  weight  of  term  in  l-th  appellation  of  considered  document; 
.  The  value  of  particular  term  depends  on  the  importance  of 

l ∈
this term in appellation – these values are presented below: 

},1{ L

)(
tw
l

=

⎧
1
⎪
⎪⎪
75.0
⎨
⎪
5.0
⎪
⎪
0
⎩

if

if

t
l

t
l

⊂

{
a

l
m

,

tit

l

}

⊂

{
a

l
wg

,

a

l
wh

}

AND

t
l

⊄

{
a

l
m

,

tit

l

}

(13) 

AND

t
l

⊄

{
a

l
m

,

a

l
wg

,

a

l
wh

,

tit

l

}

a

if

t
l

⊂

l
s
otherwise

where 

l
a,a
m

l
wg

a,

l
wh

a,

l
s

  are  respectively:  the  main  term  (with  different  wording  but 

with the same  meaning), sets of broader terms, narrower terms and correlated terms 
(“see also”). 

The  interpretation  of  presented  formula  (12)  is  the  probability  that  considered 
document is relevant to the user query is a sum of probabilities that this document is 
relevant to each of query terms. Probability that document is relevant to a term can be 
calculated as a mean value of user interests vj connected with this term multiplied by 
probability that the term occurs in the document description. 

Documents  with  value  of  query-document  relevance  greater  than  assumed 
threshold are taken into account in adaptation process. In the first step of adaptation 
new  profile  for  the  user  is  created  and  in  each  update  process,  new  knowledge  is 
combined with previous profile. 

5.3   Experimental Results 

The  goal  of  experiment  was  to  show  that  user  profile  built  and  updated  using 
proposed  methods  is  getting  closer  to  user  preferences  in  subsequent  steps.  The 
obtained results were gathered in the following diagrams. 

 
 
 
 
                 
154 

B. Mianowska and N.T. Nguyen 

Distance between user preferences and 
profile 

0,8

0,75

0,7

0,65

0,6

0,55

0,5

(cid:85)(cid:3)(cid:32)(cid:3)(cid:19)(cid:15)(cid:21)

(cid:85)(cid:3)(cid:32)(cid:3)(cid:19)(cid:15)(cid:23)

(cid:85)(cid:3)(cid:32)(cid:3)(cid:19)(cid:15)(cid:25)

1

2

3

4

5

6

7

Fig. 4. Euclidean distance between user preferences and user profile updated 7 times 

Distance between user preferences and profile 

0,8
0,75
0,7
0,65
0,6
0,55
0,5
0,45
0,4
0,35

r = 0,6

r = 0,3

r = 1,0

1

3

5

7

9

11 13 15 17 19

Fig. 5. Euclidean distance between user preferences and user profile updated 20 times 

To check the quality of proposed method, updated user profile and user preferences 
are compared using extended Euclidean  measure to appropriate  weights. The results 
are  presented  in  Fig.  4  and  Fig.  5.  for  different  values  of  relevance  threshold  ρ  and 
different  series  of  experiment.  The  distances  between  user  preferences  and  updated 
profile  become  smaller  with  growing  number  of  updates.  At  the  beginning  this 
distance can grow up because new terms are occurring in user profile but after a few 
block of session method of user profile adaptation seems to be effective (in mean of 
this measure user profile is getting closer to user preferences with a subsequent update 
processes). Comparing the results obtained for different relevance threshold values we 
can  see  that  the  greater  value  of  threshold  implies  smaller  distance  between  user 

 
 
Using Knowledge Integration Techniques for User Profile Adaptation Method 

155 

profile  and  preferences  so  that  the  user  profile  is  closer  to  user  preferences.  Some 
problems can occur when relevance threshold is greater (close to 1) because there can 
be no documents with such big relevance value. In the longer horizons, the difference 
between user preferences and user profile is decreasing and after some update steps, 
this  distance  is  not  decreasing  so  fast.  It  can  mean  that  user  profile  is  fitted  to  the 
current  user preferences that  were  not changing dramatically in a  few last blocks of 
sessions. 

6   Conclusion Remarks and Future Works 

In this paper we have presented a method of knowledge integration gathered in user 
profile with new knowledge obtained from user activity observations. The postulates 
of  integration  process  have  been  presented  and  expected  properties  of  presented 
adaptation  method  were  proved  for  a  single  term  of  user  interests.  Performed 
experiments  show  that  in  an  overall  approach  using  presented  method  of  adapting 
user profile can estimate user preferences. 

In  future  works  adaptation  method  should  be  formally  analyzed  in  terms  of 

convergence of built and updated user profile to user preferences. 

Acknowledgments. This research was partially supported by European Union within 
European  Social  Fund  under  the  fellowship  and  by  Polish  Ministry  of  Science  and 
Higher Education under grant no. N N519 407437 (2009-2012). 

References 

1.  Aamodt,  A.,  Nygard,  M.:  Different  roles  and  mutual  dependencies  of  data,  information, 
and  knowledge  -  An  AI  perspective  on  their  integration.  Data  &  Knowledge 
Engineering 16, 191–222 (1995) 

2.  Abecker,  A.,  Decker,  S.:  Organizational  Memory:  Knowledge  Acquisition,  Integration, 
and  Retrieval  Issues.  In:  Puppe,  F.  (ed.)  XPS  1999.  LNCS  (LNAI),  vol. 1570,  pp.  113–
124. Springer, Heidelberg (1999) 

3.  Bae,  J.K.,  Kim,  J.:  Integration  of  heterogeneous  models  to  predict  consumer  behavior. 

Expert Systems with Applications 37, 1821–1826 (2010) 

4.  Barthelemy, J.P.: The Median Procedure for n-Trees. Journal of Classification 3, 329–334 

(1986) 

5.  Brewka,  G.,  Eiter,  T.:  From  Data  Integration  towards  Knowledge  Mediation.  In:  Erdem, 
E.,  Lin,  F.,  Schaub,  T.  (eds.)  LPNMR  2009.  LNCS,  vol. 5753,  pp.  610–612.  Springer, 
Heidelberg (2009) 

6.  Chen,  Y.J.:  Knowledge  integration  and  sharing  for  collaborative molding  product design 

and process development. Computers in Industry 61, 659–675 (2010) 

7.  Cohen, W.W.: Integration of Heterogeneous Databases Without Common Domains Using 
Queries Based on Textual Similarity. ACM SIGMOD Record Homepage 27(2) (1998) 
8.  Conesa,  J.,  Storey,  V.C.,  Sugumaran,  V.:  Improving  web-query  processing  through 

semantic knowledge. Data & Knowledge Engineering 66, 18–34 (2008) 

9.  Daniłowicz, C.: Models of Information Retrieval Systems  with Special Regard to Users’ 
Preferences. Scientific Papers of the Main Library and Scientific Information Center of the 
Wrocław University of Technology, No.6 Monographs, No.3 Wrocław (1992) 

 
156 

B. Mianowska and N.T. Nguyen 

10.  Ding, H.: Towards the Metadata Integration Issues in Peer-to-Peer Based Digital Libraries. 
In:  Jin,  H.,  Pan,  Y.,  Xiao,  N.,  Sun,  J.  (eds.)  GCC  2004.  LNCS,  vol. 3251,  pp.  851–854. 
Springer, Heidelberg (2004) 

11.  Dingming, W., Dongyan, Z., Xue, Z.: An Adaptive User Profile Based on Memory Model. 
In: The Ninth International Conference on Web-Age Information Management. IEEE, Los 
Alamitos (2008) 

12.  Jlaiel, N., Ben Ahmed, M.: Ontology and Agent Based Model for Software Development 
Best Practices’ Integration in a Knowledge Management System. In: Meersman, R., Tari, 
Z., Herrero, P. (eds.) OTM 2006 Workshops. LNCS, vol. 4278, pp. 1028–1037. Springer, 
Heidelberg (2006) 

13.  Lee,  M.L.,  Yang,  L.H.,  Hsu,  W.,  Yang,  X.:  XClust:  Clustering  XML  Schemas  for 
Effective Integration. In: CIKM 2002, McLean, Virginia, USA, November 4-9 (2002) 
14.  Main  Library  and  Scientific  Information  Centre  in  Wroclaw  University  of  Technology, 

http://www.bg.pwr.wroc.pl/  

15.  Merugu,  S.,  Ghosh,  J.:  A  Distributed  Learning  Framework  for  Heterogeneous  Data 

Sources. In: KDD 2005, Chicago, Illinois, USA, August 21-24 (2005) 

16.  Maleszka, M., Mianowska, B., Nguyen, N.T.: Agent Technology for Information Retrieval 
in  Internet.  In:  Håkansson,  A.,  Nguyen,  N.T.,  Hartung,  R.L.,  Howlett,  R.J.,  Jain,  L.C. 
(eds.) KES-AMSTA 2009. LNCS, vol. 5559, pp. 151–162. Springer, Heidelberg (2009) 
17.  Mianowska,  B.,  Nguyen,  N.T.:  A  Framework  of  an  Agent-Based  Personal  Assistant  for 
Internet  Users.  In:  Jędrzejowicz,  P.,  Nguyen,  N.T.,  Howlet,  R.J.,  Jain,  L.C.  (eds.)  
KES-AMSTA 2010. LNCS, vol. 6070, pp. 163–172. Springer, Heidelberg (2010) 

18.  Mianowska, B., Nguyen, N.T.: A Method of User Modeling and Relevance Simulation in 
Document  Retrieval  Systems.  In:  O’Shea,  J.,  Nguyen,  N.T.,  Crockett,  K.,  Howlett,  R.J., 
Jain,  L.C.  (eds.)  KES-AMSTA  2011.  LNCS  (LNAI),  vol. 6682,  pp.  138–147.  Springer, 
Heidelberg (2011) 

19.  Mianowska,  B.,  Nguyen,  N.T.:  A  Method  for  User  Profile  Adaptation  in  Document 
Retrieval.  In:  Nguyen,  N.T.,  Kim,  C.-G.,  Janiak,  A.  (eds.)  ACIIDS  2011,  Part  II.  LNCS 
(LNAI), vol. 6592, pp. 181–192. Springer, Heidelberg (2011) 
20.  Mitchell, T.: Machine Learning. McGraw Hill, Singapore (1997) 
21.  Myaeng,  S.H.,  Korfhage,  R.R.:  Integration  of  User  Profiles:  Models  and  Experiments  in 

Information Retrieval. Information Processing & Management 26, 719–738 (1990) 
22.  Nguyen, N.T.: Advanced Information and Knowledge Processing. Springer, London (2008) 
23.  Nemati,  H.R.,  Steiger,  D.M.,  Iyer,  M.S.,  Herschel,  R.T.:  Knowledge  warehouse:  an 
architectural integration of knowledge management, decision support, artificial intelligence 
and data warehousing. Decision Support Systems 33, 143–161 (2002) 

24.  Riaño,  D.,  Moreno,  A.,  Isern,  D.,  Bocio,  J.,  Sánchez,  D.,  Jiménez,  L.:  Knowledge 
Exploitation  from  the  Web.  In:  Karagiannis,  D.,  Reimer,  U.  (eds.)  PAKM  2004.  LNCS 
(LNAI), vol. 3336, pp. 175–185. Springer, Heidelberg (2004) 

25.  Rocchio,  J.J.:  Relevance  Feedback  in  Information  Retrieval.  In:  Salton,  G.  (ed.)  The 
SMART Retrieval System: Experiments in Automatic Document Processing, pp. 313–323. 
Prentice-Hall, Englewood Cliffs (1971) 

26.  Suzuki,  Y.,  Hatano,  K.,  Yoshikawa,  M.,  Uemura,  S.,  Kawagoe,  K.:  A  Relevant  Score 
Normalization  Method  Using  Shannon’s  Information  Measure.  In:  Fox,  E.A.,  Neuhold, 
E.J.,  Premsmit,  P.,  Wuwongse,  V.  (eds.)  ICADL  2005.  LNCS,  vol. 3815,  pp.  311–316. 
Springer, Heidelberg (2005) 

27.  WordNet, A lexical database for English, http://wordnet.princeton.edu/  
28.  Yearwood, J., Stranieri, A.: The integration of retrieval, reasoning and drafting for refugee 
law: a third generation legal knowledge based system. In: ICAIL 1999 Proceedings of the 
7th International Conference on Artificial Intelligence and Law (1999) 

29.  Zhang,  D.,  Lee,  W.S.:  Web  Taxonomy  Integration  using  Support  Vector  Machines.  In: 

WWW 2004, New York, USA, May 17-22 (2004) 

Modeling Agents and Agent Systems

Theodor Lettmann1, Michael Baumann2, Markus Eberling1,
and Thomas Kemmerich2

1 Department of Computer Science
University of Paderborn
33095 Paderborn, Germany
2 International Graduate School of Dynamic Intelligent Systems
University of Paderborn
33095 Paderborn, Germany
{lettmann,michael.baumann,markus.eberling,kemmerich}@upb.de

Abstract. In present agent deﬁnitions, we often ﬁnd diﬀerent names
and deﬁnitions for similar concepts. Many works on multiagent sys-
tems use abstract and informal descriptions to introduce the topic. Even
books on multiagent systems often lack a formal deﬁnition or use a self-
contained formalism. Our goal is to present a universal and formal de-
scription for agent systems that can be used as a core model with other
existing models as special cases. This core model allows clear speciﬁca-
tion of agent systems and their properties. Design decisions are made
explicitly and, by that, become a mean of comparison for diﬀerent ap-
proaches. The proposed deﬁnitions for single- and multiagent systems
address all basic properties while leaving space for extensions and can
thus be used to talk about concepts using a homogeneous notation. The
comparisons of our deﬁnition to existing models show that the most-cited
descriptions can be expressed with our formalism which shows that there
is a basic consensus on fundamental properties of agent systems.

1 Introduction

In the multiagent systems community, we can ﬁnd several agent and agent system
deﬁnitions, e.g. in [7,9,15,18,19,21]. Also in more general texts, like encyclopedias
many similar yet diﬀerent deﬁnitions can be found [5,20]. The following informal
deﬁnition, presented in [19], is exemplary for many deﬁnitions found in literature:

“Agents” are autonomous, computational entities that can be viewed
as perceiving their environment through sensors and acting upon their
environment through eﬀectors. [. . . ]

The core that deﬁnes an agent consists of the agent’s autonomy, its perception,
and its action abilities. Although most of the well-known agent deﬁnitions (e.g.
[7,15,21]) agree in this informal core of an agent, they lack a precise and formal

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 157–181, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

158

T. Lettmann et al.

(cid:1)(cid:2)(cid:3)(cid:3)(cid:2)(cid:4)
(cid:5)(cid:6)(cid:7)(cid:8)(cid:1)(cid:9)(cid:3)(cid:2)(cid:10)(cid:11)(cid:12)

Fig. 1. Metaphorical view on the current state of the art concerning agent and agent
system deﬁnitions and the intended aim of this work to provide a formal common
model

notation which clearly states the understanding of an agent or agent system.1
Therefore, this work tries to provide such formal and precise deﬁnitions which
contain the formal core of agents and agent systems, as it can informally be
found in the existing models used in the community.

Our basic opinion about the current situation in the community is visualized
as a tree metaphor in Fig. 1. Besides an environment E and an agent set AG,
current models have only little in common on the ﬁrst sight. This is illustrated on
the left side. Beginning with these sparse similarities most models are somehow
related and try to model the same issues using diﬀerent notations or intentions.
This leads to confusion when talking to other community members even if they
work on similar problems. We intend to identify commonalities among existing
models in order to establish a new basic model which could be specialized to
most existing models. With the help of a formal model the designer is able to
clearly specify the system and its properties. This may support the embedding
of a considered system into a broader context. We also consider the abstractions
to be part of the modeling step and talk about speciﬁc levels of abstraction in
the design process of an agent system.

In the past, there have been several attempts to reach the same goal. However
and to the best of our knowledge, none of the proposed models succeeded in pro-
viding a completely formalized deﬁnition or they often resulted in non-universal
deﬁnitions. In particular, there are books on multiagent systems (MAS) that do
not provide a (formal) deﬁnition at all. For example the great book Multiagent
Systems: Algorithmic, Game-Theoretic, and Logical Foundations [16] states in
the introduction:
1 Note that this work should not be considered as an oﬀense to previous works, as
these works constitute very important basics in this area. The goal of the article at
hand is not to degrade the undebatable important inﬂuence of these works, but to
condense them to a more universal basic understanding of agents and agent systems,
and at the same time to provide a general formal notation.

Modeling Agents and Agent Systems

159

Somewhat strangely for a book that purports to be rigorous, we will
not give a precise deﬁnition of a multiagent system. The reason is that
many competing, mutually inconsistent answers have been oﬀered in the
past. Indeed, even the seemingly simpler question — What is a (single)
agent? — has resisted a deﬁnitive answer. For our purposes, the following
loose deﬁnition will suﬃce: Multiagent systems are those systems that
include multiple autonomous entities with either diverging information
or diverging interests, or both.

We state that the mentioned inconsistency comes from two diﬀerent points.
On the one hand many deﬁnitions found in literature are very abstract and
informal and are written from diﬀerent points of view. They often lack formal
models for agents and agent systems. On the other hand, although core ideas are
comparable, notation and terminology often diﬀer a lot. The quote above also
helps to clarify that it is very diﬃcult to deﬁne what an agent or an (multi-)agent
system is because, from a systems theory point of view, it is already unclear what
a system itself is. Hence, the MAS community faces the same problems about
formal deﬁnitions like the system theory community.

Florea [8] also tries to identify commonly accepted properties of an agent. She
gives an overview on the main characteristics and classiﬁes agents into diﬀerent
types. Florea states that an intelligent agent can be either reactive or cognitive
and that intelligent agents are a subset of computational agents. All in all, [8]
does not provide a formal deﬁnition of an agent. It is left to the reader to deﬁne
its own notion of agents.

The focus of this work is on intelligent agents that are able to learn. Therefore,
we will consider learning in our model and discuss our understanding of a learning
agent. Methodologies known from open multiagent systems, where agents may
enter or leave the system, are not considered in this work. Intentionally, other
additional aspects like locomotion or sensor-fusion are not considered in the work
at hand.

This article continues as follows: Section 2 gives a brief systems theory point
of view on agent systems and reﬂects known models from literature. In Sec. 3
we will provide our deﬁnitions of an environment, an agent, and a single- and a
multiagent system. In this section, we will also provide a detailed description of
how learning is incorporate in our agent deﬁnition. Comparisons of the proposed
model to well-known models from literature will be given in Sec. 4. There, we
will discuss how far we reached our aim to provide a precise and formal frame-
work for multiagent systems. Section 5 will discuss some properties of our model
focusing on the aspect of decentralization, which we consider to be essential in
a multiagent system. Finally, we will conclude the article in Sec. 6 and present
an outlook on future work.

2 Formal Concepts in the Literature

The landscape of agent system research is too manifold to give a complete listing
of concepts and approaches. So, we will try to examine the most commonly cited

160

T. Lettmann et al.

deﬁnitions in the literature. Instead of drawing the line of historical evolution
of agent and multiagent systems, we will use a systems theory point of view. In
deﬁning agent systems we face a similar problem as in deﬁning systems in general.
Following the discussion in Cellier’s book [4] a necessary and suﬃcient criterion
of some entity being a system is to distinguish it as a system. In analogy, an agent
system is a system in which some autonomous entities can be distinguished. So,
the system consists of an environment and agents within it. On the system level,
agent systems are a paradigm, a conceptual view onto systems.

Adopting Cellier’s view, a system is an entity that can be controlled and ob-
served and, therefore, it is a source of data gained by experiments. The designer
of an agent system has to devise control processes for the agents that incorporate
the essence of these data and his knowledge about the system, i.e. the control
processes are based on models of the system. According to Zeigler [22], modeling
is the process of organizing knowledge about a given system. Following Newell’s
foundation of cognitive science in [13] the knowledge level is a high-level ab-
straction and specialization of the states and the laws of behavior for a system.
According to physical symbol hypothesis [14] and problem space hypothesis [12],
the design process of control processes for agents that should act intelligent can
be based on a symbolic representation of a problem space view onto the system.
That is why introductions to agent systems start with an abstraction of an en-
vironment which is a state transition system. Essentially, the design process of
agent systems starts with a model of the system, esp. of the environment. On the
level of the environment model we can also try to characterize an agent system.
Following the tradition of SOAR (State, Operator, And Result) as a symbolic
cognitive architecture, Russell and Norvig [15] give a PEAS (Performance, Envi-
ronment, Actuators, Sensors) description of agent systems and characterizations
of environments, which reﬂects an observer’s view onto the system. It should be
noted, that for incorporated agents their position, pose, and other observable
properties are part of the state of the environment. The mental state of agents is
not observable. Agents can get knowledge from other agents by communication
or by observing their behavior, but not by “reading their minds”. Properties like
observability are deﬁned according to the designer’s knowledge about sensors
and environment. Consequently, Wooldridge [21] deﬁnes so-called runs, i.e. se-
quences of states of the environment and actions of the agent, that characterize
the behavior of agents, that specify a notion of memorization of the past and
that are basis to a deﬁnition of equivalence for agents.

On top of the environment’s model an agent model is deﬁned that deals with
the mental processes internally in an agent. More detailed concepts are used to
describe the mental state of agents. But in any case, we ﬁnd built-in knowledge
provided by the designer. The knowledge can be highly specialized, complete,
but inﬂexible as for table-driven agents, it can allow the addition of goals or max-
imization of utility in order to have pro-activity, or learning mechanisms can be
integrated for adaptivity. Looking at the control process within the “mind” of
agents, we may use approaches from all ﬁelds of artiﬁcial intelligence in order to
achieve intelligent behavior of agents. Therefore, deﬁnitions of an agent system

Modeling Agents and Agent Systems

161

usually deal with an interface of these control processes and not with the imple-
mentation itself. For implementing the mental processes within an agent, many
approaches can be found in literature. They range from well-known BDI-based
architectures to layered architectures in many variations and combinations for
single-agent and multiagent systems.

In the context of reinforcement learning (see e.g. [17]), the systems and models
are not clearly distinguished. Idealized systems are considered that exhibit the
Markov property, i.e. successor states and rewards depend only on current states
and actions. Thus, Markov Decision Processes deal with systems modeled by
state transition systems featuring the Markov property and the agent is able to
observe enough of these states to utilize this property. In this scenario, not only
the state transitions of the environment often are probabilistic, the agent’s policy
for choosing the next action has to implement a balance between exploration
and exploitation and, therefore, usually is probabilistic, too. The reinforcement
learning process is described from an observer’s point of view. In contrast, the
implementation of such processes is integrated into the agent, the agent itself
decides to “change its mind”.

3 Universal Formal Model

Most models in literature state that an agent is an autonomous software entity
that is situated in some environment. But what does “environment” mean? And
how can we formally deﬁne an agent and an agent system? In this section we
want to propose our understanding of these terms and our formal deﬁnitions as
a precise framework to model an agent and agent systems.

3.1 General Approach

In designing an agent system we are facing some general issues that should be
clariﬁed before formalizing such systems. As noted in the previous section, an
agent system is not easy to deﬁne on the (physical) system level. According to
the physical symbol hypothesis we start describing the intelligent behavior of
agent with a model of the environment that is a state transition system. We call
this level the system model level.

The observable features of the agent (e.g. pose, position) are part of the state
of the environment. An agent is not only incorporated in some environment, it is
part of it. In Fig. 2, we changed Russell’s and Norvig’s graphical representation
of agents to emphasize this view.

The design process for agents starts on a system model level. A formal descrip-
tion of the behavior of an agent system is always based on some system model.
PEAS descriptions and agent runs characterize agents from an observer’s point
of view on a system model level. For physical environments, it is impossible to
give such a characterization on the system level. The more exact a formalization
reﬂects the functionalities of a system, the harder it is to deal with these for-
malizations. (What are the actions necessary for taking and throwing a dice?)

162

T. Lettmann et al.

Perception

Sensors

Observation

Knowledge
Base

System Model
(Agent View)

manage

Controller

use

Environment

Agent

Action

Actuators

Manipulation

Fig. 2. Classical view of agent systems

Nevertheless, the resulting description always is a model of the real system.
Even in toy problems (agents playing a game) or for software agents we start on
a system model level.

Usually, designers deﬁne a system model only implicitly and in combination
with the design of the agents. In using a state transition system as a system
model, actions of an agent no longer initiate processes that change the environ-
ment, actions are reduced to their results, they change the state of the environ-
ment instantaneously. (Only the outcome of throwing the dice is of interest.)
On the system model level, interaction of an agent with the environment can be
deﬁned by perceptions (parts of states of the environment) given by sensors and
commands controlling actuators. Even though we use a state transition system
as a model of the environment, this does not mean that we deﬁne this system
explicitly. In general, we do not need to enumerate states or to give rules of state
transitions. The system model level only serves as a conceptual view onto the
agent system, that allows us to design the agent itself, i.e. a control process that
is based on an internal model of the system enriched by perceptions and that
is issuing actions. With this system model level and with an internal model of
the agent we are dealing in the formal deﬁnition of an agent system. Figure 3
visualizes the three involved levels.

The system level in Fig. 3 shows an observer’s view onto the system consisting
of agent and environment. We are aware of the sensors and actuators that build
the interface between mental processes within the agent and the system. On
the system model level we deal with abstract perceptions and actions and no
longer with realistic observations and manipulations. The mental processes of
the agent take place on the agent model level. The agent interprets perceptions
and chooses actions with respect to its mental state, which is (at least partly)
explicitly represented as knowledge.

Modeling Agents and Agent Systems

163

Agent
Model
Level

Knowledge

Base

manage

Perception

Verbiegen 30 Grad 
Skalierung vertikal 70% 

System Model

(Agent View)

Controller

Agent

use

Action

System
Model
Level

Sensors

Perception

Environment

State

Agent

Action

System
Level

Sensors

Observation

Environment

Agent

Actuators

Manipulation

Fig. 3. Designer’s view of agent systems

In Fig. 4, we provide a simple example to clarify the aforementioned general
approach2. On the system level of this example, i.e. in the real world, a simple
robot should control the temperature in a room to be between 21◦C and 23◦C.
The robot can sense the temperature in the room and is able to perform two
actions: turn on or turn oﬀ a radiator. As it is common sense, we assume for our
environment that the temperature increases if the radiator is turned on and that
the temperature falls if the radiator is turned oﬀ. However, there might also be
situations in which the temperature decreases although the radiator is turned on
(e.g. if windows are opened in cold winter days). Clearly, the temperature can
also increase although the radiator is oﬀ (e.g. during hours of sunshine). The
actual temperature hence is inﬂuenced by the state of the radiator as well as by
other processes/events in the environment.

The second layer of Fig. 4 shows one possible state transition system model
of the aforementioned problem. In this example, we decide to completely ne-
glect the functionalities of heat absorption and heat loss within the system.
Transitions are labeled with heat and cool down abstracting the environment’s
processes/events and with the switch on and switch oﬀ actions of the robot. Per-
ceptions are provided as values from R that represent the observed temperature.

2 By intention, the ﬁgure is kept as simple as possible as it is intended only to visualize

those elements that are of key interest for the following explanations.

164

T. Lettmann et al.

(cid:28)(cid:9)(cid:8)(cid:2)(cid:15)(cid:17)(cid:16)(cid:29)(cid:17)(cid:26)(cid:30)(cid:18)(cid:1)(cid:17)
(cid:31)(cid:32)(cid:1)(cid:4)(cid:17)(cid:33)(cid:26)(cid:34)(cid:8)(cid:16)(cid:17)(cid:15)(cid:26)(cid:35)(cid:36)(cid:29)(cid:17)(cid:9)(cid:4)(cid:26)(cid:37)(cid:3)(cid:17)(cid:2)(cid:38)
(cid:39)(cid:17)(cid:1)(cid:3)(cid:29)(cid:9)(cid:17)(cid:40)(cid:26)(cid:36)(cid:41)(cid:26)(cid:4)(cid:17)(cid:33)(cid:42)(cid:17)(cid:40)(cid:18)(cid:4)(cid:43)(cid:40)(cid:17)(cid:1)(cid:26)(cid:33)(cid:8)(cid:16)(cid:17)(cid:15)(cid:17)(cid:16)(cid:26)(cid:18)(cid:1)(cid:26)(cid:3)(cid:9)(cid:4)(cid:17)(cid:40)(cid:44)(cid:18)(cid:15)(cid:1)

(cid:28)(cid:9)(cid:8)(cid:2)(cid:15)(cid:17)(cid:16)(cid:29)(cid:17)(cid:26)(cid:30)(cid:18)(cid:1)(cid:17)
(cid:31)(cid:32)(cid:1)(cid:4)(cid:17)(cid:33)(cid:26)(cid:34)(cid:8)(cid:16)(cid:17)(cid:15)(cid:26)(cid:35)(cid:36)(cid:29)(cid:17)(cid:9)(cid:4)(cid:26)(cid:37)(cid:3)(cid:17)(cid:2)(cid:38)
(cid:39)(cid:17)(cid:1)(cid:3)(cid:29)(cid:9)(cid:17)(cid:40)(cid:26)(cid:30)(cid:41)(cid:26)(cid:4)(cid:17)(cid:33)(cid:42)(cid:17)(cid:40)(cid:18)(cid:4)(cid:43)(cid:40)(cid:17)(cid:1)(cid:26)(cid:33)(cid:8)(cid:16)(cid:17)(cid:15)(cid:17)(cid:16)(cid:26)(cid:18)(cid:1)(cid:26)(cid:3)(cid:9)(cid:4)(cid:17)(cid:29)(cid:17)(cid:40)(cid:1)

(cid:25)(cid:26)(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:25)(cid:26)(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:22)(cid:11)(cid:20)(cid:13)(cid:14)(cid:23)(cid:11)(cid:21)(cid:13)(cid:14)(cid:24)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:27)(cid:26)(cid:11)(cid:20)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:27)(cid:26)(cid:11)(cid:20)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:22)(cid:11)(cid:20)(cid:13)(cid:14)(cid:23)(cid:11)(cid:21)(cid:13)(cid:14)(cid:24)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:12)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:11)(cid:12)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)
(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:11)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)
(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:19)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:36)(cid:29)(cid:17)(cid:9)(cid:4)(cid:26)(cid:34)(cid:8)(cid:16)(cid:17)(cid:15)(cid:26)(cid:47)(cid:17)(cid:44)(cid:17)(cid:15)

(cid:11)(cid:20)(cid:45)(cid:46)(cid:11)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)
(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:45)(cid:20)(cid:19)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:45)(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)
(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:45)(cid:19)(cid:11)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:45)(cid:20)(cid:19)(cid:13)(cid:14)
(cid:8)(cid:10)(cid:10)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:9)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:7)(cid:8)(cid:10)(cid:10)
(cid:6)(cid:17)(cid:18)(cid:4)

(cid:11)(cid:20)(cid:45)(cid:46)(cid:11)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:11)(cid:20)(cid:45)(cid:11)(cid:21)(cid:13)(cid:14)
(cid:8)(cid:9)

(cid:5)(cid:8)(cid:8)(cid:15)(cid:7)(cid:16)(cid:8)(cid:2)(cid:9)

(cid:1)(cid:17)(cid:9)(cid:1)(cid:17)(cid:1)
(cid:4)(cid:17)(cid:33)(cid:42)(cid:17)(cid:40)(cid:18)(cid:4)(cid:43)(cid:40)(cid:17)

(cid:4)(cid:17)(cid:33)(cid:42)(cid:17)(cid:40)(cid:18)(cid:4)(cid:43)(cid:40)(cid:17)(cid:26)(cid:1)(cid:17)(cid:9)(cid:1)(cid:8)(cid:40)
(cid:35)(cid:40)(cid:17)(cid:4)(cid:43)(cid:40)(cid:9)(cid:1)(cid:26)(cid:4)(cid:17)(cid:33)(cid:42)(cid:17)(cid:40)(cid:18)(cid:4)(cid:43)(cid:40)(cid:17)(cid:26)(cid:26)(cid:26)(cid:26)(cid:26)(cid:26)(cid:26)(cid:26)
(cid:2)(cid:3)(cid:4)(cid:6)(cid:26)(cid:4)(cid:2)(cid:8)(cid:26)(cid:16)(cid:17)(cid:5)(cid:3)(cid:33)(cid:18)(cid:15)(cid:26)(cid:42)(cid:15)(cid:18)(cid:5)(cid:17)(cid:1)(cid:38)

(cid:31)(cid:32)(cid:1)(cid:4)(cid:17)(cid:33)(cid:26)(cid:34)(cid:8)(cid:16)(cid:17)(cid:15)(cid:26)(cid:47)(cid:17)(cid:44)(cid:17)(cid:15)

(cid:31)(cid:32)(cid:1)(cid:4)(cid:17)(cid:33)(cid:26)(cid:47)(cid:17)(cid:44)(cid:17)(cid:15)

(cid:18)(cid:29)(cid:17)(cid:9)(cid:4)(cid:26)(cid:18)(cid:5)(cid:4)(cid:3)(cid:8)(cid:9)

(cid:17)(cid:9)(cid:44)(cid:3)(cid:40)(cid:8)(cid:9)(cid:33)(cid:17)(cid:9)(cid:4)(cid:26)(cid:17)(cid:44)(cid:17)(cid:9)(cid:4)

(cid:17)(cid:9)(cid:44)(cid:3)(cid:40)(cid:8)(cid:9)(cid:33)(cid:17)(cid:9)(cid:4)(cid:26)(cid:1)(cid:4)(cid:18)(cid:4)(cid:17)(cid:26)

Fig. 4. Example of the mentioned levels and possible diﬀerences on the Agent Model
Level

Modeling Agents and Agent Systems

165

The system states are abstractions of the environment based on temperature
values from R (two decimal places) and the state of the radiator (on/oﬀ). Note
that the designer does not need to specify the state transition system explicitly.
Indeed, it is the conceptual decision of using a state transition system with a
certain temperature precision that matters at this point. Accordingly, the system
model level given in the ﬁgure should be considered as an attempt to visualize
this concept, only.

Finally, the third level speciﬁes the agent’s model of the world, i.e. a system
model from an agent’s point of view. Here, the conceptual system model level
provides us with a formal perception (temperature value from R). Then, the
designer has to map a perception to an agent internal representation of tem-
perature according to the agent’s internal system model states. Note that the
latter model has to be deﬁned formally based on the concept provided at the
lower system model level. As Fig. 4 indicates, concrete agents (of diﬀerent de-
signers) may have diﬀerent interpretations of the system model level concerning
e.g. perception handling, state structures, or state sets.

When looking at virtual systems on the other hand, we see that agents and
environment by their very nature are already constructed at a certain level of
abstraction. A formal deﬁnition of the system level might be available to the
designer. Thus, the system model level also can be — but not necessarily has to
be — fully speciﬁed and might even be equivalent with the system level.

3.2 Dynamic Environment

Before we start to deﬁne agent systems, we want to point out the strong connec-
tion between agents and environments. Both are tightly coupled entities, where
one can not be deﬁned without deﬁning the other. Ferber [7] terms this relation
for situated agents “the agent/environment duality”.

Accordingly, our formal deﬁnitions for dynamic environments (Def. 1) and for
agents (Def. 2) contain links between each other that will be highlighted at the
respective text passages. For clarity, note that throughout this work, we use A to
denote a single agent out of the set of agents AG. We use A as index to indicate
that the respective element is part of agent A’s deﬁnition. Please also note that
Π(X) denotes the set of probability distributions over a variable X.

Next, we give a formal and precise deﬁnition of our understanding of a dy-
namic environment. Based on the view introduced above, we decided to ex-
plicitly model agents in an environment by considering the inﬂuence of their
actions, only. Deﬁnition 1 summarizes our dynamic environment deﬁnition and
the remainder of this section discusses it.
Deﬁnition 1 (Dynamic Environment). An environment E is described as a
tuple E = (S, s0, A, E, τ ) where
– S = {s0, s1, . . . } is a countable set of environment states with an initial state
s0.
– A = ×

AA denotes all joint actions (of agents) that can be performed in

A∈AG

the environment. Here, for each agent A from the set of agents AG situated

166

T. Lettmann et al.

in this environment, AA is a countable set of actions which contains at least
an element no-action that should be used whenever the agent does not perform
any action.

– E is a countable set of events that may occur in the environment. The set
contains at least an element no-event, that is used whenever no event hap-
pens.

– τ : S × A × E → Π(S) is a probabilistic state transition function, which
deﬁnes the probability that the successive state will be s(cid:5) ∈ S, if the current
state is s ∈ S and a joint action a ∈ A and an event e ∈ E take place. For
brevity, we write τ (s(cid:5) | s, a, e) to denote such a particular probability.

Note that we do not explicitly introduce sets of environment objects other than
agents, since all (observable) information of these objects are considered to be
incorporated into the set of environment states S. Figure 5 visualizes a single-
agent system. Here, the wooden box is an example for an object that is modeled
within the environment state set.

The environment E starts in an initial state s0 ∈ S, where S is a countable
set, either ﬁnite or inﬁnite. In a particular system, depending on the designer’s
decision, this set can of course be ﬁnite. Although conceptually S could also be
an uncountable set (e.g. containing parts represented by values in R), we will
deal with countable subsets only, when simulating such systems on a computer.
The same argumentation holds for all countable sets in the remaining deﬁnitions.

(cid:9)(cid:10)(cid:1)(cid:2)(cid:8)(cid:11)(cid:12)
(cid:7)(cid:4)(cid:2)(cid:13)

(cid:1)(cid:2)(cid:3)(cid:14)(cid:15)(cid:6)(cid:16)(cid:17)(cid:1)(cid:18)(cid:8)

(cid:9)(cid:10)(cid:1)(cid:2)(cid:8)

(cid:1)(cid:2)(cid:3)(cid:4)(cid:5)(cid:6)(cid:2)(cid:7)(cid:1)(cid:2)(cid:8)

Fig. 5. Point of view: environment, objects, agent, and mental state (“mind”)

The discrete states of the environment are inﬂuenced by (environment) events
as well as by joint actions of the agents. This inﬂuence is reﬂected in the proba-
bilistic state transition function τ , which deﬁnes the reaction of the environment
to actions and events. Actions are performed simultaneously by all agents and
thus establish a joint action a ∈ A. To simplify the deﬁnition of the state transi-
tion function τ , our model requires the no-operation action no-actionA for each
agent, as this allows joint actions that may contain “idle” agents. Given the
current state s ∈ S, the joint action a ∈ A and the event e ∈ E, the func-
tion τ returns the probability that the resulting state will be state s(cid:5) ∈ S. Due
to the probabilistic nature of the state transition function it is easy to model

Modeling Agents and Agent Systems

167

dynamic environments that do not behave deterministic in the same situation
but respond with diﬀerent answers for the same inputs. Essentially, we deﬁned
our environment to exhibit the Markov property as it is a natural assumption.
However, using a meta-model approach for the environment allows us to encode
ﬁnite state-action sequences as states in the meta-model.

To clarify the role of the state transition function τ , reconsider the system
model level of the temperature example from Sec. 3.1. For instance, for state
(cid:4)21.10, oﬀ(cid:5), action switch-on and event heat, the probability to transition to
state (cid:4)21.23, on(cid:5) might be τ ((cid:4)21.23, on(cid:5)|(cid:4)21.10, oﬀ(cid:5), switch-on, heat) = 0.95. How-
ever, with a smaller probability the system may transition to another state,
e.g. to (cid:4)21.82, on(cid:5) if the heater’s inﬂuence to the temperature diﬀers from the
expectations underlying the state transition model.

Note that the state transition function τ is not responsible for the actual
selection of a successive state, but only returns a probability τ (s(cid:5) | s, a, e) for
each possible successive state s(cid:5) ∈ S. A state selection mechanism (like e.g.
the Roulette wheel selection [1]) based on these probabilities is explicitly not
modeled as we consider it as a process at system level.

As we have now deﬁned the environment we will next deﬁne a single intelligent

agent.

3.3 Intelligent Agent

In the previous section, we deﬁned our notion of an environment using the term
“agent”. However, we did not yet provide a precise formal agent deﬁnition. This
will be done in the remainder of this section. As we mentioned earlier in this
work, we intend to model an intelligent agent that is able to learn. Hence, the
question arises what an intelligent agent is. Gottfredson [10] deﬁnes intelligence
as follows:

A very general mental capability that, among other things, involves
the ability to reason, plan, solve problems, think abstractly, comprehend
complex ideas, learn quickly and learn from experience. It is not merely
book learning, a narrow academic skill, or test-taking smarts. Rather,
it reﬂects a broader and deeper capability for comprehending our sur-
roundings – “catching on,” “making sense” of things, or “ﬁguring out”
what to do.

The Encyclopædia Britannica [6] states:

In education, the ability to learn or understand or to deal with new
or challenging situations. In psychology, the term may more speciﬁcally
denote the ability to apply knowledge to manipulate one’s environment
or to think abstractly as measured by objective criteria.

As a conclusion of deﬁnitions from the literature we want an intelligent agent
to be able to use knowledge to reason about the next action, to be able to deal
with unknown situations and to adapt its behavior.

168

T. Lettmann et al.

Next, we deﬁne an agent in Def. 2. As mentioned earlier in this work, agents
and environments are tightly coupled entities in any situated agent system.
Therefore, any agent according to the proposed agent deﬁnition is formally linked
to its environment by the state set S of that environment. The vision function
υA of an agent A reﬂects the transition or border between what constitutes an
agent and an environment in our model. Note also, that all agents constructed
according to Def. 2 are element of the agent set AG, which is used to deﬁne the
environment in Def. 1.

Deﬁnition 2 (Agent). AG is the set of all agents. An agent A ∈ AG is deﬁned
as a tuple A = (S, SA, IA, MA, AA, υA, adaptA) where

1. S is a countable set of states of an environment.
2. SA is a countable set of internal representations of the environment states.
3. IA is a countable set of A’s internal states.
4. MA is a countable set of A’s mental states.
5. AA is a countable set of A’s possible actions containing at least one special

action no-actionA.

6. υA : S → Π(SA) is a probabilistic vision function that maps the current
state of the environment to a probability distribution over all possible internal
representations of the environment states.

7. adaptA : MA → MA is an adaptation mechanism that translates the current

mental state into another mental state.

A single mental state mA ∈ MA is deﬁned as a tuple mA = (iA, ρA, πA, oA, τA)
where

8. iA ∈ IA is the current internal state of agent A.
9. ρA : SA × IA → IA is a cognition function that calculates the successive
internal state of the agent based on the internal representation of the envi-
ronment state and the current internal state.

10. πA : IA → Π(AA) is the probabilistic policy function of the agent. It deﬁnes
the probability of executing action a ∈ AA, if the agent is in the internal
state i ∈ IA.

11. oA is an action selector mechanism which selects an action of the agent based

on the probability distribution over the possible actions.

12. τA : IA × AA → IA is a state transition function. It deﬁnes the successive
internal state i(cid:5) ∈ IA, if the agent performs action a ∈ AA in the internal
state i ∈ IA.

Like in known models from literature, we reﬂect that the agent is situated in
some environment. As the agent is not able to sense the whole environment
state through its sensors, the vision function υA translates the real external
environment state to a probability distribution over all internal representations
of the environment state Π(SA) (cf. Def. 2(6)). This probability distribution
should be used to reﬂect sensor noise, only. In particular, it should not be used
to model random precepts. Both, the set of environment states and the set of
internal representations are part of the agent (cf. Def. 2(1) and Def. 2(2)).

Modeling Agents and Agent Systems

169

We decided to distinguish between the pure internal state of the agent IA
and its mental states MA, as the mental states are more than just the inter-
nal states. The mental state of an agent is everything that is important for a
speciﬁc state and a speciﬁc instance of the agent cycle. The mental state there-
fore contains all relevant information of the agent, i.e. the internal state, the
sensed environment state, the policy function, the state transition function, and
the cognition function. Figure 5 visualizes our understanding of the relations
between an agent that is situated in an environment and its mental state. In
particular, the agent’s sensors and actors are considered to be part of the envi-
ronment. The agent’s mental state, i.e. its “mind”, is not considered to belong to
the environment since the mind is what makes the agent autonomous. It issues
directives to its actuators and receives data from its sensors. However, the mind
neither has inﬂuence on the success of actions nor on how noisy data inputs are.
Accordingly, actuators and sensors are not completely controllable by the agent
and thus are considered to be part of the (uncontrollable) environment. Clearly,
one can argue on this boundary deﬁnition but it seems to be useful in this work.
The special role of the agent’s mental state is reﬂected in the second part of
the agent deﬁnition 2(8) – (11). The mental state consists of the current internal
state of the agent and the “mind” of the agent, that is described in detail,
now. There, we have the cognition function which calculates the next internal
state iA based on the current internal state iold
A and the internal representation
of the observed environment state sA (cf. Def. 2(9)). Based on the resulting
internal state iA, the policy function πA gives a probability distribution over the
possible agent actions AA (cf. Def. 2(10)). The set of possible actions should at
least contain a special operation no-actionA, which allows the agent to perform
no action. The action selector mechanism oA then selects which action anext
is
executed by the agent (cf. Def. 2(11)). This decision is based on the probability
distribution πA over all possible actions. For instance, this can be realized using a
probability-proportional mechanism like the Roulette wheel selection [1], or any
other mechanism like simply selecting the action with the highest probability.
Formally, this process of determining the resulting action anext

A is given by

A

A = oA(πA(ρA(sA, iold
anext

A ))).

(1)

The next part of the mental state is the internal state transition function τA
which calculates the next internal state inext
A based on the current internal state
iA and the selected action anext
(cf. Def. 2(12)). According to the previous ex-
planations, this can formally be stated as

A

inext
A = τA(iA, anext

A ).

(2)

To further clarify this agent cycle, Fig. 6 visualizes the whole process.

The learning process is then the adaptation of the whole mental state. This
is captured by the function adaptA which translates a given mental state into
another one. The learning step can basically be performed at any time, especially
it may happen during execution of any given method within the agent. The
mental state can be changed between the perception-reasoning process or even

170

T. Lettmann et al.

ρA

sA

perception

υA

s

sensor input

iA

iold
A

internal state
memory

decision making

iA

πA

Π (AA)

iA

inext
A

τA

anext
A

oA

action selection

anext
A
action

Fig. 6. The agent cycle with our agent’s deﬁnition

within a process. We assume that the learning method to be used is coded in
the internal states of the agents and that the adaptation function just employs
this knowledge about how the agent should learn. In particular, it follows that
the adaptation function itself can also be changed by a learning step. Since
mental states are based on countable sets, this means that we are dealing with
uncountable sets of e.g. possible adaptation functions. At this point, we do not
want to limit a learning step in order to circumvent this problem. Instead, we
assume (in accordance with machine learning) that complete hypothesis spaces
are searched incompletely by using a preference bias. Our view on the learning
mechanism is illustrated in Fig. 7. It shows which elements of Fig. 6 are inﬂuence
by the adaptA function (dashed lines).

Additionally, we do not integrate an explicit performance measure as it is used
in other deﬁnitions of agent systems (e.g. [15]). There is no necessity in our formal
deﬁnition since we are not formalizing some concrete system. If one needs such
signals from the environment (e.g. rewards), it is left to the designer to integrate
this measure. We will deal with the “missing” performance measurement in our
discussion section in more detail.

3.4 Multiagent Systems - Model

Up to now we have presented our understanding of an environment and a single
agent. In this section we want to deﬁne a single-agent and a multiagent system.
As stated in the previous section, the system consists of a single or more agent(s)
and an environment. Both are part of the system. Especially, the physical rep-
resentation of an agent is part of the environment as it is shown in Fig. 5. The
deﬁnition of the agent only captures the mind of the agent and how a mental

Modeling Agents and Agent Systems

171

mental state

ρA

iold
A

iA
internal state
memory

sA

perception
υA

s

sensor input

decision
making

iA
πA

Π (AA)

iA

inext
A
τA

anext
A
action selection

oA

anext
A
action

mental state(cid:2)

ρ(cid:2)
A

sA

perception
υA

s

sensor input

iold
A

iA
internal state
memory(cid:2)

decision
making

adaptation

iA
π(cid:2)
A

Π (AA)

iA

inext
A

τ (cid:2)
A

anext
A
action selection

o(cid:2)
A

anext
A
action

adaptA

adaptA

Fig. 7. The agent adapts its mental state to another mental state. The inﬂuence of
adaptA is indicated by dashed arrows.

state may look like. Therefore, the two deﬁnitions are straightforward. For sim-
plicity we assume that agents and environment correspond to each other with
respect to environment states and agent actions.

Deﬁnition 3 (Single-Agent System (SAS)). A single-agent system (SAS)
consists of exactly one agent A that is situated in an environment E. Therefore,
a SAS is a tuple SAS = (E, A).

Deﬁnition 4 (Multiagent System (MAS)). A multiagent system (MAS)
consists of a set of agents AG that are situated in an environment E. Thus,
a MAS is a tuple MAS = (E, AG).

A key property of a MAS is its decentrality. In particular, there should not be
a central instance neither in the form of a super-agent nor any other form of
external central instance. If a single-agent system is considered, it also might be
the case that, on system level, we do have additional other agents. But, as those
agents are not under consideration from the agent’s point of view, we might
decide to model these situations with a single-agent system. With a SAS we are
able to concentrate on a speciﬁc agent. In a SAS no interaction, in particular
neither collective nor competitive behavior, is modeled. The key issue when us-
ing a MAS instead of a SAS is the modeling of the other agents as autonomous
entities. Designing the mental processes of these agents simultaneously admits
controlled interaction between agents. Coordination, cooperation and communi-
cation then are additional issues that have to be considered. We do not formalize
these aspects, as from our point of view they are part of the knowledge of the
agents encoded in the mental states. For example a speciﬁc communication pro-
tocol is not modeled as a part of such a system as it is considered to be part of
the agent’s knowledge.

172

T. Lettmann et al.

3.5 Exemplary Speciﬁcation of a Heater-Agent

We will now show how our approach can be used to model the heater example
presented in Fig. 4. It is given as a single-agent system SAS = (E, A), having
the environment E = (S, s0, A, E, τ ) with:

– S = {(cid:4)temperature, status(cid:5) | temperature ∈ R ∧ temperature has accuracy of

10−2 ∧ status ∈ {on, oﬀ}}

– s0 = (cid:4)20.00, oﬀ(cid:5) ∈ S
– A = {(switch-on), (switch-oﬀ), (no-action)}
– E = {heat, cool-down, no-event}
– state transition function τ : S × A × E → Π(S)

For brevity we omit the formal speciﬁcation of the state transition function
τ . Assume that τ is speciﬁed such that the probability distribution over the
environment states reﬂects the expected behavior as shown in Fig. 4 with high
probability. However, with low probability other transitions may occur. The
agent A = (S, SA, IA, MA, AA, υA, adaptA) is formally speciﬁed by:

– S = {(cid:4)temperature, status(cid:5) | temperature ∈ R ∧ temperature has accuracy of

10−2 ∧ status ∈ {on, oﬀ}}

– SA = {(cid:4)temperatureA, status(cid:5) | temperatureA ∈ Z ∧ status ∈ {on, oﬀ}}
– IA = {too-cold, expecting-cooling, ﬁne, expecting-heating, too-hot}
– a mental state mA = (iA, ρA, πA, oA, τA) ∈ MA with

• iA ∈ IA
• cognition function ρA : SA × IA → IA
• policy function πA : IA → Π(AA)
• action selection mechanism oA is Roulette wheel selection
• state transition function τA : IA × AA → IA

– AA = {switch-on, switch-oﬀ, no-action}
– υA : S → Π(SA)
– adaptA : MA → MA with adaptA(mA) = mA for all mA ∈ MA

As before we omit formal speciﬁcations of some functions of the agent for better
readability. For the cognition function ρA we assume that the agent wants to
heat the room if it feels too cold and the temperature is too low and the switch of
the heater is turned oﬀ. For the policy function we assume that the probability
distribution over the actions reﬂects the intended actions of the agent with high
probability, i.e. switch-oﬀ if it is too hot and the heater is on or switch-on if it is
too cold and the heater is oﬀ, etc. However, with low probability an arbitrary ac-
tion may be selected by the action selection function oA. For the state transition
function it is assumed that the successive internal state of the agent corresponds
with the expected behavior of the designer. For instance if the internal state is
too-cold and the action switch-on is selected by the agent the next internal state
should be expecting-heating. Note that the internal state is not only inﬂuenced
by the state transition function but also by the perception of the agent as shown
in Fig. 6. For the perception function υA we assume that it receives with high
probability the real temperature and the real status of the heater. With low

Modeling Agents and Agent Systems

173

probability the agent senses a lower or higher temperature and/or a wrong state
of the heater. To ease the example, we use an agent that is not able to learn.
This is reﬂected in the adaptA function that does not change the mental state of
the agent. If the agent should learn, the adaptation function should change the
functions of the mental state (cf. Fig 7).

As we can see, the agent system of the example can easily be speciﬁed with

our universal formal model.

4 Comparison to Existing Models

In this section we will compare the presented model to well-known models of the
literature and relate them to the example from Sec. 3.5. We will see that these
models are specializations of our model.

4.1 Comparison to the Model of Russell and Norvig

In [15], Russell and Norvig give a rather informal description of agents and
agent systems. Due to the lack of a formal deﬁnition, there exists no mapping
of notations and we, therefore, compare corresponding concepts.

The authors describe several architectures of agents. Their basic concept con-
sists of an agent that perceives its environments through sensors and may use
its actuators to act in it. All presented agents are specializations of this concept.
The components that compose the diﬀerent types of agents are representable by
the components Controller and Knowledge Base in our model (cf. Fig. 2). The
basic concepts of both, our and Russell and Norvig’s model, are very similar
except the fact that in our model the agent is explicitly stated to be part of the
environment and is not just acting upon it. In [15], the agent function models the
agent’s behavior and all presented architectures are specializations of this basic
function. In contrast to this top-down approach, our model follows a bottom-up
approach by deﬁning all possible skills and properties and the creator of the
agent system has to deﬁne these components adequately.

Russell and Norvig specify a task environment with the help of an PEAS
(Performance, Environment, Actuators, Sensors) description. The external envi-
ronment of Russell and Norvig is covered by our deﬁnition of an environment E,
whereas their concept of a task environment resembles our deﬁnition of an agent
system. The sensors are modeled by the perception function υA whose output
is adapted by the cognition function ρA and the actuators’ behavior is modeled
by the state transition function τA. The performance measure in [15] is a signal
of an observer to rate the performance of the agents so that the agents are able
to meet the designer’s intention. It has nothing to do with learning where an
internal performance measure is needed which may also be given by a sensor.
In contrast the performance measure from the PEAS description is an external
stimulus from outside the system.

174

T. Lettmann et al.

4.2 Comparison to the Model of Wooldridge

In this section we want to compare the model presented by Wooldridge [21] to
the model presented in this paper.

Wooldridge models the interaction between the environment and the agent
as a form of a history which he calls runs. A run consists of a sequence of
environment states e and actions α. With the help of a state transition function
the current environment state e is translated into another environment state e(cid:5)
based on the agent’s action α. This is very similar to the model presented here.
The main diﬀerence is that we do not expect the set of environment states to be
ﬁnite as Wooldridge does. Another diﬀerence is that we do not model the state
transition function of the environment solely based on agent actions. We also
want to be able to model other processes that eﬀect the state of the environment.
This is captured in the set of events that may occur in the environment. Without
such possibilities it would not be able to deﬁne heating of a room that is the
eﬀect of stronger insolation through a window. In Wooldridge’s model we are
unable to capture such mechanisms. We also allow the agents to do nothing (i.e.
to select no-action). In the model of Wooldridge this is simply not the default
case to have a no-action. There, a succeeding environment state is reached only if
all agents have selected an action. Another diﬀerence is that we explicitly see the
set of joint actions as part of formal deﬁnition of the environment. Wooldridge
implicitly does the same but this is only captured in his state transition function
which reacts on the agents’ joint action. Wooldridge also concentrates on the
mind of the agent and, therefore, formalizes the agent as a kind of observer of
the environment. The agent life-cycle of percept-reason-act is again similar to
our deﬁnition even though his deﬁnition is less detailed then ours.

To sum up, the model of Wooldridge slightly diﬀers from our model. The
mapping of the notations in Tab. 1 underlines this similarity. One main diﬀerence
is our use of inﬁnite state sets. Thus, in the example from Sec. 3.5, we are allowed
to model the state sets as integers. However, in Wooldridge’s model an upper
and lower bound for the temperature has to be provided in order to gain ﬁnite
sets. But what happens if the temperature is outside the considered interval?

4.3 Comparison to Ferber’s Model

In the book “Multi-Agent Systems” [7], Ferber discusses various approaches and
formal models towards modeling agents and agent systems that can be found
in literature. He also provides a “minimal common deﬁnition” for an agent and
deﬁnes the concept of multiagent systems. His functional agent deﬁnition to a
large extent is in a line with our formal model. Some of his requirements, like
the ability to act, to (partially) percept the environment, or to have a (partial)
representation of the environment can directly be found in our formal deﬁnition,
too. Others, like communication or skills can be modeled using our formal sensors
and actors. Also more abstract concepts like tendencies, objectives, or resources
owned by an agent can be incorporated in our model using the mental state, its
components and the agent’s internal states.

Modeling Agents and Agent Systems

175

Table 1. Comparison: Wooldridge’s notation and the notation used in our universal
model

Wooldridge Description

Universal

E
e
e0
Env
Ac
α
—
—
AG
Ag
I
P er
see
next
action

Set of environment states
A single environment state
Initial environment state
The environment
Set of actions of a single agent
A single agent’s action
Set of joint actions of all agents
A single joint action of all agents
Set of agents
A single agent
Set of agent’s internal states
Set of perceptions of an agent
Perception function of an agent
Cognition function of an agent
Policy function of an agent

S
s
s0
E
AA
a
A
a
AG
A
I
SA
υ
ρ
π

The multiagent system’s concept provided by Ferber can be described by
a tuple (E, O, A, R, Op) and some general rules that he calls the “laws of the
universe”. Here, E is an environment that contains a set of objects O. A ⊆ O is
a set of active entities/agents and R speciﬁes the relations between objects. The
set Op contains the actions of the agents that may operate on objects from O.
When an action can be performed and how the environment reacts, is speciﬁed
by the laws of the universe.

As we can see in Tab. 2, this concept is consistent with our formal model.
Objects which are not agents can be incorporated in the environment state set
S. We thus do not require an explicit set to model them. The same also holds
for Ferber’s set of relations R between objects, as it might be encoded in S, too.
Communication or neighboring relations can be implemented by sensors and
actors using (maybe partial) agent internal representations of the environment
(SA). However, with the help of our model we are able to specify these abstract
laws of the universe. This is illustrated in our example by the set of events and its
consideration in the state transition function of the environment (cf. Sec. 3.5).

4.4 Comparison to the Model of Franklin and Graesser

In 1997, Franklin and Graesser [9] tried to ﬁgure out the essence of agency and
what distinguishes an (autonomous) agent from a program. They survey and
discuss several existing agent deﬁnitions used at that time. Although literature
did not agree in all aspects of what agents are, Franklin and Graesser identiﬁed
several properties that describe the essence of a general agent deﬁnition. they
basically consider an autonomous agent to be a system that is part of an en-
vironment which it can sense and in which it performs actions according to its

176

T. Lettmann et al.

Table 2. Mapping: Ferber’s MAS model

Ferber

Description

Universal

E
O
A
R

Environment
Set of objects
Set of agents
Relations between objects

E
AG, respectively encoded in S
AG
encoded in S; realized through
sensor and actor deﬁnitions

Op
laws of the
universe

An assembly of operations of agents A
τ
Specify operations and reactions of
environment to operations

own agenda. As this deﬁnition is too broad, the authors clarify that additional
properties shall be taken into account in order to derive useful agent deﬁnitions.
Besides this agent deﬁnition, Franklin and Graesser also provide an oper-
ational deﬁnition for an agent system. Although they use a state transition
system, they do not provide a completely formalized model. Nevertheless, simi-
larities with our universal model can easily be identiﬁed as demonstrated in Tab.
3. As in our model, Franklin and Graesser’s agent system deﬁnition also formally
distinguishes between (agent) actions and events/dynamics that change the en-
vironment. Other requirements presented in [9], like sensors that may change
their sensing quality over time, can also easily be reﬂected in our model. There-
fore, the environment state has to contain some timing information, since this
enables our perception function υ to model the desired, time-dependent behav-
ior. Also, Franklin and Graesser’s action selection mechanism can be realized in
our model. In detail, their mechanism selects an action based on sensor inputs
and drives. The resulting action then will inﬂuence the environment’s dynamics
and thus the state of the environment. Obviously, this mechanism depends on
sensed states, drives and thus on the mental state of the agent. Hence, we can
refer to the corresponding parts in our deﬁnition, which include those shown
in the agent cycle in Fig. 6, as well as the state transformer function τ of our
environment.

In addition to these similarities, it is also worth to mention that our formal
model is more ﬂexible than the one of Franklin and Graesser. For instance, our
model can be used to formalize uncertainty as many of its functions are deﬁned
over probability distributions. In the example presented in Sec. 3.5 this is re-
ﬂected in the perception function and the environment state transition function.

4.5 Comparison to Markov Based Models

Markov-based models are ubiquitous in reinforcement learning in agent systems
[3,17]. In their well known book on reinforcement learning, Sutton and Barto
[17] consider an agent to be the entity that learns and makes decisions. The
environment on the other hand is what the agent interacts with, i.e. everything
outside the agent. In general, Sutton and Barto provide the rule that “anything

Modeling Agents and Agent Systems

177

Table 3. Mapping: Franklin and Graesser

F&G

Description

Universal

E
T
X
E(0)
A/Aj
A/Aj

P

S(A, t)

Environment
State transition function
Environment states
Initial environment state
A single agent ...
... and at the same time the actions of a single
agent
Function that describes changes in the environ-
ment that can not be attributed to agents
Sensor of agent A at time t

E
τ
S
s0
A
AA

E

υ

that cannot be changed arbitrarily by the agent is considered to be outside of
it and thus [is] part of its environment” [17]. They also state that the border
between an agent and its environment usually diﬀers from the border between a
real robot and its environment. That is, the agent’s actors and sensors should be
considered as parts of the environment instead of belonging to the agent. Note
that this point of view matches our opinion as discussed in detail in Sec. 3.3.

In the reinforcement learning problem, agent and environment interact at
discrete time steps t by invoking actions at ∈ A(st), receiving a reward rt ∈ R
and changing the environment state st ∈ S. Possible actions may vary in diﬀerent
environment states. The goal of an agent is to learn an optimal policy π∗ that
maximizes the total reward over a given horizon. A policy π : S × A → [0, 1]
returns the probability of executing action a ∈ A(s) in state state s ∈ S. An
environment has to be Markovian, i.e. the transition probability of entering
state st+1 ∈ S after executing action at ∈ A(st) in state st ∈ S does not
depend on the (action) history of how state st was reached but only on the last
state and action. The reinforcement learning problem for the single agent case
is investigated in the formal context of Markov Decision Processes (MDP) [3].
A Markov Decision Process can be described by a tuple (cid:4)S, A, T, R(cid:5), where S
is a set of environment states, A a set of actions, T a state transition function
and R a reward function [11]. Reinforcement learning in multiagent systems is
investigated in the context of Markov games [18], also known as stochastic games,
and further extensions of the MDP, such as the Decentralized Partial Observable
Markov Decision Processes (Dec-POMDP) [2]. The latter extends the MDP by
considering a set of agents, their joint actions, their joint observations, and an
observation function.

General elements of our environment E = (S, s0, A, E, τ ) according to Deﬁ-
nition 1 have corresponding elements in Markov based models, except for the
set of events E. Agents in Markov based models are basically reduced to ac-
tions and observations. The drive to behave such that a reward in reinforcement
learning is maximized, is not formally modeled into the agents. In our model,
however, learning can be realized using the adaptA mechanism. Actions and

178

T. Lettmann et al.

observations/sensors can also be found in our model. What mainly distinguishes
our agents from Markov based agents is the fact that our model provides the
explicit opportunity to model the environment as well as a (diﬀering) agent
internal environment model. Markov based models in contrast do not clearly
separate between the agent model and the environment model.

Further issues when comparing the models include the following:

1. Both models work with probability distributions over states and observa-

tions.

2. Markov based models make use of an explicit reward function. Our model,
in contrast, does not provide an explicit reward function, however, it could
easily be realized as part of the environment state.

3. The state transition function τ of our environment does not only depend on
the joint actions of agents (respectively the action of an agent in a single-
agent system) but also on events, i.e. processes, that may happen in the
environment (cf. example in Sec. 3.5). Although the inﬂuence of such events
might also be modeled through the probability distribution in Markov based
models, the explicit usage of events allows a ﬁner granulated modeling.
4. Partial observations realized in (Dec-)POMDPs ﬁnd their counterpart in the
perception function υA, the cognition function ρA, in the internal represen-
tation of the environment state and in the agent internal state.

5 Discussion

In this section we want to discuss the proposed model. As stated in the last
section, our model is basically in line with the known models from literature.
We also have presented that those models are specializations of our proposed
model. But what has not been considered in our model and what should be
considered when modeling and building an agent system? These questions are
treated in this section.

In contrast to some models known from literature, our approach does not
explicitly contain a performance measure. The reasons for this are the following.
As the formal model is not meant to model some concrete multiagent system one
has to add a performance measure if a concrete system is considered. In literature
(e.g. [15]) one ﬁnds basically two diﬀerent kinds of performance measures. The
ﬁrst is some external signal for the agent given by some observer entity that rates
the behavior of the agent in its environment. This can be incorporated into our
model as an additional sensor input. The other kind of performance measures
is an internal one. The agent rates its actions’ outcome itself to perform some
learning task. This can be incorporated into the mental state of the agent where
the learning takes place. We decided not to model these performance measures
as there is no universal schema for it. The performance may be measured over
preferable states or over an entire run of the agent. Since performance measures
are speciﬁc for each agent system, we thus decided to omit it in the proposed
universal model.

Modeling Agents and Agent Systems

179

(cid:13)(cid:8)(cid:6)(cid:7)(cid:12)(cid:14)

(cid:6)
(cid:5)
(cid:3)
(cid:4)
(cid:3)
(cid:2)
(cid:1)

(cid:2)

(cid:9)
(cid:6)
(cid:8)
(cid:7)

(cid:1)(cid:2) (cid:3)

(cid:6)

(cid:6)

(cid:9)

(cid:5)

(cid:4) (cid:2) (cid:3)

(cid:7) (cid:8)

(cid:1)(cid:2)(cid:3)

(cid:4)(cid:2)(cid:3)

(cid:5)(cid:6)

(cid:7)(cid:8)(cid:6)(cid:9)

(cid:6)(cid:10)(cid:8)(cid:11)(cid:12)

(cid:6)(cid:10)(cid:8)(cid:11)(cid:12)

(cid:6)(cid:10)(cid:8)(cid:11)(cid:12)

Fig. 8. Master with slave agents that submit their ﬁndings to the master agent and
receive commands from it

As stated in Sec. 3 all sets that are used in the deﬁnitions can be inﬁnite.
Another worth mentioning aspect is that we want to highlight the concept of
decentralism in agent systems. Therefore, it should be impossible to have a so-
called master agent that may control all the other slave agents which then are
reduced to some kind of external sensors/actors for that master. Such a master
agent as illustrated in Fig. 8 would be some kind of single point of failure in an
application. Besides this, if there should be a master agent then the question
arises if the concept of multiagent systems is appropriate for such an application
or if it would be better to use a single-agent system instead. An advantage of
having countably inﬁnite sets is the pure application of the concept. If we would
limit the sets to ﬁnite ones we would also limit the possibilities of modeling
real world problems. Let us again consider the temperature agent from previous
sections. If the temperature is measured in integer values, it is easy to see that
this is by nature a countably inﬁnite set. If we limit the range of temperatures to
a speciﬁc ﬁnite interval we would have to think about minimum and maximum
values.

Our model does not contain any information about communication between
agents and what has to be considered if the agents communicate with each other.
In our view the communication channel is just another sensor input source, and
therefore, is part of the perception function. The knowledge about the rules
of communication, i.e. the communication protocol, are also part of the agents
knowledge and are coded in the mental states.

Note that the mental state of an agent might be transmittable. In this case,
creating a master agent is very simple, since it is possible that an agent com-
municates its mental state to another agent. Therefore, we should discuss the
properties of a communication channel: it should be limited. Possible realizations
may include a limited maximum message size that can be transmitted in one
step or the storage capacities of a single agent should be bounded such that not
all mental states can be stored. We want to emphasize this issue as otherwise
the system would collapse to a single-agent system with a master agent.

180

T. Lettmann et al.

Another aspect on the mental state deals with homogeneous agent systems,
i.e. agent systems in which all agents are equal. Equality of agents means that
all functions, the sensors and actuators are similar. It follows that it is no longer
required to transmit the entire mental state to let one agent reason about the
reasoning of all other agents. Accordingly, it is very easy to create a master
agent in such systems, as a master/leader agent would only need to get all
internal states of all other agents and their current internal representation of the
environment.

If learning is considered in a multiagent system one can argue that no homo-
geneous system can exist. This is due to the fact that the learning manipulates
the policy of an agent. Therefore, every agent has its own policy function after
a suﬃcient number of iterations. In our view the learning changes the policy
function itself and, therefore, formally the policy function is replaced. This is
also reﬂected by the formal deﬁnition as no time-index is used and there is no
parameter that is manipulated through the learning process.

6 Conclusion

This article proposed a basic formal model for agents and agent systems. Our
main focus was on intelligent agents that are able to learn and thus are able
to adapt to changes in the environment. The formal speciﬁcation of an agent’s
mental state is an essential part of our deﬁnition. As presented in the comparison
in Sec. 4 the most cited models from literature ﬁt into our model and indeed are
expressible with our deﬁnitions. We ﬁgured out the similarities and diﬀerences
and can conclude that most inconsistencies are based on varying points of view.
With our contribution we have a universal platform which favors discussions on
speciﬁc models and leaves space for extensions.

Nevertheless, additional work should be done until the proposed model is suf-
ﬁciently large to cover all facets of agent systems. Up to now neither cooperation
nor coordination mechanisms are modeled in our deﬁnitions although both are
very important to be considered in some applications of agent systems. For the
time being, these concepts are implicitly modeled in the knowledge base and the
internal state but in future work we will try to formally deﬁne cooperation and
coordination and to integrate both into the formal model.

References

1. Baker, J.E.: Reducing bias and ineﬃciency in the selection algorithm.

In:
Grefenstette, J.J. (ed.) Proceedings of the Second International Conference on Ge-
netic Algorithms and their Application, ICGA 1987, pp. 14–21. Lawrence Erlbaum
Associates, Mahwah (1987)

2. Bernstein, D.S., Amato, C., Hansen, E.A., Zilberstein, S.: Policy iteration for de-
centralized control of markov decision processes. Journal of Artiﬁcial Intelligence
Research (JAIR) 34, 89–132 (2009)

3. Bu¸soniu, L., Babuˇska, R., De Schutter, B.: A comprehensive survey of multiagent
reinforcement learning. IEEE Transactions on Systems, Man, and Cybernetics,
Part C: Applications and Reviews 38(2), 156–172 (2008)

Modeling Agents and Agent Systems

181

4. Cellier, F.E.: Continuous System Modeling. Springer, Heidelberg (1991)
5. Encyclopædia Britannica: Agent. Website (2010),

http://www.britannica.com/EBchecked/topic/705121/agent (visited on April
11, 2011)

6. Encyclopædia Britannica: Intelligence. Website (2010),

http://www.britannica.com/EBchecked/topic/289766/human-intelligence
(visited on April 11, 2011)

7. Ferber, J.: Multi-Agent Systems: An Introduction to Distributed Artiﬁcial Intelli-

gence. Addison-Wesley, Longman (1999)

8. Florea, A.M.: Introduction to multi-agent systems. In: International Summer

School on Multi-Agent Systems, Bucharest (1998)

9. Franklin, S., Graesser, A.C.: Is it an agent, or just a program?: A taxonomy for
autonomous agents. In: Jennings, N.R., Wooldridge, M.J., M¨uller, J.P. (eds.) ECAI-
WS 1996 and ATAL 1996. LNCS, vol. 1193, pp. 21–35. Springer, Heidelberg (1997)
10. Gottfredson, L.S.: Foreword to “intelligence and social policy”. Intelligence 24(1),

1–12 (1997)

11. Kaelbling, L.P., Littman, M.L., Cassandra, A.R.: Planning and acting in partially
observable stochastic domains. Artiﬁcial Intelligence 101(1-2), 99–134 (1998)
12. Newell, A.: Reasoning, problem solving, and decision processes: The problem space
as a fundamental category. In: Nickerson, R. (ed.) Attention and Performance VII,
pp. 693–718. Erlbaum, Mahwah (1980)

13. Newell, A.: Uniﬁed Theories of Cognition. Harvard University Press, Harvard

(1990)

14. Newell, A., Simon, H.A.: Computer science as empirical inquiry: Symbols and

search. Commun. ACM 19, 113–126 (1976)

15. Russell, S.J., Norvig, P.: Artiﬁcial Intelligence: A Modern Approach, 3rd edn. Pren-

tice Hall, Englewood Cliﬀs (2010)

16. Shoham, Y., Leyton-Brown, K.: Multiagent Systems: Algorithmic, Game-
Theoretic, and Logical Foundations. Cambridge University Press, Cambridge
(2009)

17. Sutton, R.S., Barto, A.G.: Reinforcement Learning: An Introduction. MIT Press,

Cambridge (1998)

18. Vlassis, N.: A Concise Introduction to Multiagent Systems and Distributed Artiﬁ-

cial Intelligence. Morgan and Claypool Publishers (2007)

19. Weiss, G. (ed.): Multiagent Systems: A Modern Approach to Distributed Artiﬁcial

Intelligence. MIT Press, Cambridge (1999)

20. Wikipedia: Multi-agent system – wikipedia, the free encyclopedia. Website
http://en.wikipedia.org/w/index.php?title=Multi-agent_system&

(2010),
oldid=420648559 (visited on April 11, 2011)

21. Wooldridge, M.: An Introduction to MultiAgent Systems, 2nd edn. Wiley, Chich-

ester (2009)

22. Zeigler, B.P.: Multifacetted Modelling and Discrete Event Simulation. Academic

Press Professional, Inc., London (1984)

Online News Event Extraction
for Global Crisis Surveillance

Jakub Piskorski1, Hristo Tanev2, Martin Atkinson2,
Eric van der Goot2, and Vanni Zavarella2

1 Polish Academy of Sciences, ul. J.K. Ordona 21, 01-237 Warszawa, Poland
Jakub.Piskorski@ipipan.waw.pl
2 Joint Research of the European Commission, 21027 Ispra (VA), Italy
{Hristo.Tanev,Vanni.Zavarella}@ext.jrc.ec.europa.eu,
{Martin.Atkinson,Erik.VanderGoot}@jrc.ec.europa.eu

Abstract. This article presents a real-time and multilingual news event
extraction system developed at the Joint Research Centre of the Euro-
pean Commission. It is capable of accurately and eﬃciently extracting
violent and natural disaster events from online news. In particular, a
linguistically relatively lightweight approach is deployed, in which clus-
tered news are heavily exploited at all stages of processing. Furthermore,
the technique applied for event extraction assumes the inverted-pyramid
style of writing news articles, i.e., the most important parts of the story
are placed in the beginning and the least important facts are left to-
ward the end. The article focuses on the system’s architecture, real-time
news clustering, geo-locating and geocoding clusters, event extraction
grammar development, adapting the system to the processing of new
languages, cluster-level information fusion, visual event tracking, event
extraction accuracy evaluation, and detecting event reporting boundaries
in news article streams. This article is an extended version of [20].

Keywords: event extraction, global crisis monitoring, shallow text pro-
cessing, information aggregation.

1 Introduction

A massive amount of information is now stored and exchanged via the World
Wide Web, mostly in the form of free text. Therefore, natural language pro-
cessing technologies which can map free text into structured data formats are
becoming paramount. In particular, the proliferation of electronic news media
has led to an emergence of publicly accessible news aggregation systems (e.g.,
Google News, Yahoo! News, SiloBreaker, NewsTin and DayLife) on the web for
facilitating navigation through news broadcast daily worldwide. Such news ag-
gregation systems group topically related articles into clusters and classify them
according to various predeﬁned criteria. Although such systems provide a more
structured view of what is happening in the world, the amount of data requiring
processing by a human remains enormous. Recently, several endeavours towards

N.T. Nguyen (Ed.): Transactions on CCI V, LNCS 6910, pp. 182–212, 2011.
c(cid:2) Springer-Verlag Berlin Heidelberg 2011

Online News Event Extraction for Global Crisis Surveillance

183

developing real-time news event extraction systems have been attempted, to de-
tect key information about events from various electronic news media and sum-
marize this information in the form of database-like structures. In this way, such
systems have been successful in providing even more compact event descriptions
that combine information from diﬀerent sources.

This article gives an overview of the multilingual event-extraction system de-
veloped at the Joint Research Centre of the European Commission for extracting
violent and natural disaster event information from on-line news articles collected
through the Internet with the Europe Media Monitor (EMM) [6,5], a web based
news aggregation system, which regularly checks for updates of news articles
across multiple sites in diﬀerent languages. Gathering information about crisis-
related events over time is an important task for better understanding conﬂicts
and for developing global monitoring systems for automatic detection of pre-
cursors for threats in the ﬁelds of conﬂict and health. In particular, web news
reﬂect trends and behaviours, which constitute a powerful data source for future
event prediction. The increase in security concerns since 9/11 especially those
related to terrorism have signiﬁcantly boosted research on developing systems
for automated event extraction from news.

Formally, the task of event extraction is to automatically identify events in
free text and to derive detailed information about them, ideally identifying Who
did what to whom, when, with what methods (instruments), where and why. In-
formation about an event is usually represented in a so called template which can
be seen as a attribute-value matrix. An example illustrating an event template is
presented in Figure 1. Automatically extracting events is a higher-level informa-
tion extraction (IE) task [3] which is not trivial due to the complexity of natural
language and due to the fact that, in news, a full event description is usually
scattered over several sentences and articles. In particular, event extraction relies
on identifying named entities and relations between them. The research on au-
tomatic event extraction was pushed forward by the DARPA-initiated Message
Understanding Conferences1 and by the ACE (Automatic Content Extraction)2
programme. Although, a considerable amount of work on automatic extraction
of events has been reported, it still appears to be a lesser studied area in com-
parison to the somewhat easier tasks of named-entity and relation extraction.
Precision/recall ﬁgures oscillating around 60% are considered to be a good re-
sult. Three comprehensive examples of the current functionality and capabilities
of event extraction technology dealing with identiﬁcation of disease outbreaks
and conﬂict incidents are given in [12], [34] and [16]. The most recent trends
and developments in this area are reported in [4]. The work most similar to ours
on deploying information extraction technology for merging news events from
multiple news sources covering diﬀerent time periods have been reported in [17]
and [31].

1 MUC - http://www.itl.nist.gov/iaui/894.02/related/projects/muc
2 ACE - http://projects.ldc.upenn.edu/ace

184

J. Piskorski et al.

killing
shooting
Americans
Five Iraqis

TYPE:
METHOD:
ACTOR:
VICTIM:
LOCATION: Bagdad
TIME:

12.10.2003

Fig. 1. An example of an event template derived from the sentence Five Iraqis were
shot by Americans in Bagdad on the 12th of October 2003

Due to our requirement that the event extraction system must be multilingual
and easily extensible to new domains, a linguistically relatively lightweight ap-
proach has been chosen. In particular, we take advantage of clustered news data
at several stages of the event extraction process and we assume that news arti-
cles are written in the inverted-pyramid style, i.e., the most important parts of
the story are placed in the beginning of the article and the least important facts
are left toward the end. As a consequence of this, only a tiny fraction of each
news article is analyzed. Further, a cascade of ﬁnite-state extraction grammars
is deployed in order to identify event-related information. These patterns are
semi-automatically acquired in a bootstrapping manner, again via utilization of
clustered news data. Exploiting clustered news intuitively guarantees better pre-
cision. Since information about events is scattered over diﬀerent articles single
pieces of information are validated and aggregated at cluster-level. One of the
main prerequisites for the ability to digest massive amounts of data in real time
is eﬃcient processing. Therefore, an in-house extraction pattern-matching en-
gine has been developed in order to ﬁnd a good trade-oﬀ between terse linguistic
descriptions and eﬃcient processing. The system has been fully operational since
2007 and supports event extraction for several languages. The results are viewed
in real time via a publicly accessible web page or via Google Earth application.
An empirical evaluation revealed acceptable accuracy and a strong application
potential. Although our domain centers around security-related events, the tech-
niques deployed in our system can be applied to other domains, e.g., tracking
business-related events for risk assessment.

The rest of this article is organized as follows. First, in section 2 the architec-
ture of our live event extraction processing chain is described. Next, section 3
gives an overview of real-time news clustering. The process of geo-locating clus-
ters is sketched in section 4. Subsequently, section 5 describes the structure of
event extraction grammars, their creation, and multilingual aspects. Further,
section 6 elaborates on information fusion. Event visualization and accessing
fully-ﬂedged event descriptions generated by the system is presented in sec-
tion 7. Evaluation ﬁgures are given in section 8. Section 9 presents the results
of some experiments on detecting news event reporting boundaries in a stream
of news articles. Finally, we end with a summary and future work directions in
section 10.

Online News Event Extraction for Global Crisis Surveillance

185

2 Event Extraction Process

This section brieﬂy describes the real-time event extraction processing chain,
which is depicted in Figure 2. First, before the proper event extraction pro-
cess can proceed, news articles are gathered by dedicated software for electronic
media monitoring, namely the Europe Media Monitor EMM system [6] that
receives 100000 news articles from 2500 news sources in 42 languages each day.
Secondly, all articles are classiﬁed according to around 700 categories and then
scanned in order to identify known entities (e.g., geographical references, names
of known people and organizations, etc.). This information is then created as
meta data for each article. Next, the articles are grouped into news clusters
according to content similarity. Subsequently, each cluster is geo-located. Fur-
ther, clusters describing security-related events are selected via the application
of key-word based heuristics.

NewsNewsNewsNewsNews

Meta-Data Creation

Real Time Clusterer

Geo-Locating

Core Linguistic Analysis

Cascaded Event 
Extraction  Grammar 
Application

Entity Role 
Disambiguator

Victim 
Arithmetic

Event Type 
Classiﬁer

Event Description
Assembly

Fig. 2. Real-time event extraction processing chain

186

J. Piskorski et al.

Next, each of these clusters is processed by NEXUS (News cluster Event
eXtraction Using language Structures), the core event extraction engine. For
each cluster it tries to detect and extract only the main event by analyzing
all articles in the cluster. For each detected violent and natural disaster event
NEXUS produces a frame, whose main slots are: date and location, number of
killed and injured, kidnapped people, actors, and type of event. In an initial step,
each article in the cluster is linguistically preprocessed in order to produce a more
abstract representation of its text. This encompasses the following steps: ﬁne-
grained tokenization, sentence splitting, domain-speciﬁc dictionary look-up (e.g.,
recognizing numbers, quantiﬁers, person titles), matching of key terms indicating
unnamed person groups (e.g. civilians, policemen, Shiite), and morphological
analysis. The aforementioned tasks are accomplished by CORLEONE (Core
Linguistic Entity Online Extraction), our in-house core linguistic engine [19].

Once the linguistic preprocessing is complete, a cascade of extraction gram-
mars is applied on each article within a cluster. The patterns for the extraction
grammars are created through a blend of machine learning and knowledge-based
techniques. Contrary to other approaches, the learning phase is done by exploit-
ing clustered news, which intuitively guarantees better precision of the learned
patterns. The extraction patterns are matched against the ﬁrst sentence and the
title of each article from the cluster. By processing only the top sentence and
the title, the system is more likely to capture facts about the most important
event in the cluster. Figure 3 gives an example of titles and corresponding ﬁrst
sentences from articles reporting on a same event related to a killing of 44 people
at a wedding in Turkey.

Finally, since the information about events is scattered over diﬀerent articles
(see the example in Figure 3), the last step consists of cross-article cluster-level
information fusion, in order to produce fully-ﬂedged event descriptions, i.e., we
aggregate and validate information extracted locally from each single article
in the same cluster. This process encompasses mainly three tasks, entity role
disambiguation (as a result of extraction pattern application the same entity
might be assigned diﬀerent roles), victim counting and event type classiﬁcation.
The core event-extraction process is synchronized with the real-time news
article clustering system in EMM in order to keep up-to-date with most recent
events.

However, in some domains, e.g., illegal migration, clustering proved to be
ineﬀective since event reporting data seems to be more sparse, frequently coming
from local news sources only, thus unlikely to form clusters. In such cases, event
extraction is performed on single articles, and a larger portion of each article
is analysed in order not to lose any piece of possibly relevant information [22].
Nevertheless, in this article, we focus on the description of the cluster-centric
approach to event extraction, which turned out to perform good in the domain
of natural disasters, violent events and other crisis-related events.

A more thorough description of the real-time news clustering, geo-locating clus-
ters, event extraction grammars, information fusion, event reporting boundary

Online News Event Extraction for Global Crisis Surveillance

187

44 shot dead during Turkey ceremony
Eight gunmen suspected of fatally shooting 44 people at an engagement
ceremony in south-east Turkey have been arrested . . .
44 killed in attack in Turkey (AP)

AP - Turkish security forces on Tuesday detained eight gunmen suspected of
fatally shooting 44 people, many of whom were praying, at an engagement
ceremony in the rural southeast of the country . . .
Turkey - Forty-four people killed at wedding party in Kurdish
region
Forty-four people, including 22 women and children, were killed in an attack
on a wedding party late on Monday in Turkey’s Kurdish region . . .
Gunmen kill at least 44 at Turkish wedding party
Masked gunmen armed with assault riﬂes and grenades attacked a wedding
party in mainly Kurdish southeast Turkey, killing at least 44 people, author-
ities said . . .
Masked gunmen kill 45 people at engagement party
ANKARA, Turkey – Masked assailants with grenades and automatic
weapons attacked an engagement ceremony in southeast Turkey on Mon-
day, killing 45 people . . .

Fig. 3. Titles and corresponding ﬁrst sentences from articles (in the same cluster)
reporting on a same event related to a killing of 44 people at a wedding in Turkey

detection, issues concerning multilinguality and accessing the results produced by
the live event extraction engine follows in the subsequent sections.

3 Clustering of News Articles

The real time news clustering system performs periodical hierarchical cluster-
ing on a set of news articles harvested in a 4-hour time window. A cache is
maintained for twice that period in case the number of articles drops below a
certain minimum, in which case the system attempts to process at least that set
minimum. This process is performed every 10 minutes.

Initially each news article is considered as a cluster. The clustering process is
agglomerative and uses average group linkage to determine the distances between
the clusters. For calculating these distances a simple cosine measure is used.
The clustering process continues until the maximum cosine distance falls below
a certain set threshold (a function of the size of the term-set which can be taken
as a proxy for the vector density, given a maximum word count per article).

The article feature vectors are simple word count vectors. The words used
for the construction of the word-document space are selected based on various
criteria depending on the amount of information available in the time window
under consideration. No lemmatizing is performed and a simple bag-of-words
approach is used instead.

188

J. Piskorski et al.

The system maintains a constantly updated frequency table for all words
found in all articles processed for a particular language over time. The system
employs a technique similar to an inﬁnite input response ﬁlter to calculate and
maintain these frequencies, which can shift over time. After a ﬁxed run-length
the number of samples used to calculate the average is set. This prevents loss of
accuracy, numeric overﬂow and gives a more realistic temporal view of the word
frequencies. Additionally, a full information entropy calculation is performed over
the article set in the time window every clustering run [27].

The selection criteria for the words to be used for the construction of the

word-document space are as follows:

– only use words of more than 2 characters (most words of 2 or less characters

do not carry any signiﬁcant meaning),

– reject words that are in the 100 most frequently used words in the language
(empirically this contains most of the non-signiﬁcant words greater than 2
characters e.g. the, and, for, that, said, etc.),

– reject words that have an information entropy higher than a certain language-
dependent threshold (typically 0.75) in the document set under consideration
(functionally almost the same as the top 100 words removal, but now for the
document set at hand removes words like days of the week, etc.),

– consider only the ﬁrst 200 words (length normalisation) of each news article
(most news-relevant information will be present in the ﬁrst 200 words),
– only select words that appear at least twice in at least 2 documents, unless
this results in a number of unique words less than a certain threshold (typi-
cally 1000) in which case only use words that appear at least once in at least
2 documents.

A cluster is only valid if it contains articles from at least 2 diﬀerent sources and
these articles are not duplicates.

After the clustering procedure the new clusters are compared with those cal-
culated at t − Δt. If there is any overlap between clusters, the articles appearing
in cluster at t − Δt which do not appear in the current cluster, are linked to the
current cluster. There are 2 possible reasons for the missing articles: either the
articles have simply dropped out of the time window, or the cluster has broken
up due to the changes in word-document space. This merging process can lead to
internal duplication of articles, i.e. the articles are linked back into the original
cluster, but also exist in a newly formed cluster. In order to avoid this duplica-
tion, the current cluster set is scanned for internal overlap and any overlapping
clusters are merged.

In this way news stories consisting of large numbers of articles, far exceeding
the number present in any time-window, can be tracked incrementally over time,
as long as there is some reporting in the time-window.

The graph in Figure 4 shows the evolution of a cluster over time as a story. On
the bottom axis is time, both left and right axis show the number of articles. The
left axis shows the cumulative and 4hour sum count, while the right axis shows
the instantaneous (10 minute) count. Similarly, the area in the chart shows the

Online News Event Extraction for Global Crisis Surveillance

189

cumulate count of articles in the cluster and the line in the chart shows the story
evolution (number of articles present in a 4 hour window) and the bars show the
instant (10 minute) entry of new articles into the cluster. Red dots on the line
indicate potential breaking news moments.

Fig. 4. Evolution of a cluster over time

4 Geo-locating

Homographs pose a well-known problem in the process of geo-tagging news ar-
ticles [24]. In particular, words referring to place names may:

(a) occur as person names, e.g., Conrad Hilton are the names of towns in the

USA, New Zealand and Canada,

(b) occur as common words, e.g., And is a village in Iran,
(c) have variants, e.g., well known cities have language variants, e.g., Seul mean-
ing alone/only in French is also the Capital of South Korea in Portuguese
and Italian,

(d) refer to diﬀerent locations, e.g., there are 33 places named Clinton.

Additional complications are caused by language inﬂection and capital cities
referring to the reporting location.

Our latest approach is to conduct homograph disambiguation at two distinct
levels, ﬁrstly at the level of individual article and secondly, when the articles
have been clustered. The article geo-tagging algorithm occurs as follows: First,
the problem in (a) is solved by removing previously recognized person and orga-
nization names from the toponym candidate list. Next, a multi-lingual gazetteer
of place, province, region and country names (circa 600000 entries) is used to
geo-match a list of candidate locations in the news articles.

In order to disambiguate homographs that are common words and place names
(see (b) and (d)), the traditional approach is to use language dependent stop

190

J. Piskorski et al.

word lists. We use a diﬀerent approach based on two characteristics maintained
in our gazetteer. The ﬁrst characteristic classiﬁes locations based on their per-
ceived size, such that capital cities and major cities have a higher class than
small villages. The second characteristic maintains the hierarchical relation of
place in its administrative located hierarchy (i.e., town, in province, in region, in
country). The disambiguation algorithm lets high class locations pass through
as well as locations that have a containment relation with other candidate loca-
tions (e.g., Paris, Texas, USA). To resolve (c) we remove any geo-tags that are
incompatible with the language3 of the article.

In order to handle name inﬂection, names are maintained with their variants
encoded as a regular expression. Only matches, for which the language of the
name and the article are compatible, are maintained in the candidate location
list. Next, a Newswire location ﬁltering is applied, where the word position of
the candidate location is used to promote locations occurring after an initial
location since the Newswire location generally appears earlier in the article.

We are currently experimenting with adding further ﬁltering mechanisms com-
ing from the semantics of the locative prepositional phrases, in which toponyms
are usually nested. This seems particularly needed in domains, such as border
security, that involve motion events (e.g. a person entity moving from place A
and heading to place B possibly passing through place C), with typically multi-
ple place name mentions, most of which are not the actual location of the event.
In most of these contexts, a simple semantic analysis is suﬃcient to discard
toponyms that are fulﬁlling irrelevant semantic roles (like the ORIGIN of the
person involved in an illegal border crossing event), so as to largely reduce the
complexity of the whole geo-location task.

At the level of the cluster all named entities and geo-tags in the articles of the
cluster are gathered together. This is necessary to remove named entities that
have not been matched in articles (a common reporting trait is to mention only
well known names, e.g., Clinton, Hilary Rodham Clinton, Hilary Rodham and
Hilary Clinton). Next, we gather the highest score for each place by maximum
value (we don’t sum same place values since often news wires are repeated many
times and this would aﬀect the real location that is cited in the article). Next,
we cap the scores, here we look for tags that are either countries or regions and
check whether any of the places cited are physically inside. When this is the
case we increase the place score, i.e., some articles of the same cluster will talk
more generally of an event in China while others will be more speciﬁc and will
describe a location like Sechuan Province. Finally, the highest scoring place tag
is chosen as the geo-location of the cluster.

Compared to the previous version of the geo-location algorithm [29] we have
carried out a more thorough evaluation for English, French and Italian. The
data set used were the daily clusters over three selected days. The results are
presented in Table 1.

3 The language of the article is primarily determined by a source related language
attribute but if necessary corrected by an automatic language detector which forms
part of the system.

Online News Event Extraction for Global Crisis Surveillance

191

Table 1. Precision and Recall of the Geo-Location algorithm

Lang Cluster Correct Missed False Precision Recall
Tags Tags Pos.
17
270
1
76
9
74

Size
294
77
83

94%
98%
89%

97%
95%
99%

EN
FR
IT

7
4
1

A particular system of Geo Code Identiﬁers (GID’s) has been employed in this
system. The objective of encoding the GID’s is to allow fast evaluation of part of
the disambiguation algorithm notably with respect to the containment functions
that can be computationally intensive to evaluate using classical topographic
algorithms. Here, we capitalize on the fact that our gazetteer is predeﬁned so
we use oﬀ-line processing to determine such topographic containment relations
between elements in the gazetteer and higher administrative levels.

Therefore, the basic objective of encoding of the GID’s is to be able to quickly
determine whether two places are in the same provincial, regional and national
administrative areas without having to do costly topographic calculations, index
look ups or string comparisons. To fulﬁll this situation the GID is represented
as a long integer which encodes each individual place name’s administrative
characteristics. In particular, country ID, regional ID, provincial ID and place
name ID are represented with 10, 6, 8 and 30 bits respectively.

We start by deﬁning GID’s for our administrative area dataset, GAUL (Glo-
bal Administrative Unit Layers) from the Food and Agriculture Organization
of the United Nations. To encode the GAUL data set we start with all the
country polygons that we assign a GID as an integer value in ascending order.
For each country we then assign a sequential GID for each region inside the
country again following our system outline above, then we repeat this operation
for each province in each of the regions.

We then take our home grown multilingual gazetteer of place names, which
has grown from a number of open source information repositories like Wikipedia
and Geonames. For each location in the place name gazetteer we look for the
provincial polygon that contains the place name coordinates. The GID of the
provincial polygon will, by our encoding scheme, already contain the regional
and national GID’s. Hence we just assign a sequential number to the place name
corresponding to its assignment (sequence) in the provincial polygon. Determin-
ing whether two GID’s refer to places in a same country or administrative region
boils down to simple bit operations.

5 Cascaded Extraction Grammars

In order to detect event information from news articles we deploy a cascade of
ﬁnite-state extraction grammars. Following this approach was mainly motivated
by the fact that:

192

J. Piskorski et al.

– ﬁnite-state grammars can be eﬃciently processed, and
– using cascades of smaller grammars facilitates the maintenance of underlying

linguistic resources and extending the system to new domains.

This section ﬁrst introduces our in-house IE-oriented pattern matching engine.
Subsequently, the structure of the current event extraction grammar for En-
glish is presented. Finally, the automatic extraction pattern acquisition and is-
sues concerning adapting event extraction process to new languages are brieﬂy
addressed.

5.1 Pattern Matching Engine

In order to guarantee that massive amounts of textual data can be digested in
real time, we have developed ExPRESS (Extraction Pattern Engine and Speci-
ﬁcation Suite), a highly eﬃcient extraction pattern engine [18], which is capable
of matching thousands of patterns against MB-sized texts within seconds. The
speciﬁcation language for creating extraction patterns in ExPRESS is a blend
of two previously introduced IE-oriented grammar formalisms, namely JAPE
(Java Annotation Pattern Engine) used in the widely-known GATE platform [9]
and XTDL, a signiﬁcantly more declarative and linguistically elegant formalism
used in a lesser known SProUT platform [10].

An ExPRESS grammar consists of pattern-action rules. The left-hand side
(LHS) of a rule (the recognition part) is a regular expression over ﬂat fea-
ture structures (FFS), i.e., non-recursive typed feature structures (TFS) without
structure sharing, where features are string-valued and unlike in XTDL types
are not ordered in a hierarchy. The right-hand side (RHS) of a rule (action part)
constitutes a list of FFS, which will be returned in case LHS pattern is matched.
On the LHS of a rule variables can be tailored to the string-valued attributes
in order to facilitate information transport into the RHS, etc. Further, like in
XTDL, functional operators (FO) are allowed on the RHSs for forming slot val-
ues and for establishing contact with the ‘outer world’. The predeﬁned set of FOs
can be extended through implementing an appropriate programming interface.
FOs can also be deployed as boolean-valued predicates. The two aforementioned
features make ExPRESS more amenable than JAPE since writing ’native code’
on the RHS of rules (common practice in JAPE) has been eliminated. Finally,
we adapted JAPE’s feature of associating patterns with multiple actions, i.e.,
producing multiple annotations (possibly nested) for a given text fragment. It
is important to note that grammars can be cascaded. The following pattern for
matching events, where one person is killed by another, illustrates the syntax.

killing-event :>

((person & [FULL-NAME: #name1]):killed

key-phrase & [METHOD: #method, FORM: "passive"]

(person & [FULL-NAME: #name2]):killer):event

->
killed: victim & [NAME: #name1],

Online News Event Extraction for Global Crisis Surveillance

193

killer: actor & [NAME: #name2],
event: violence & [TYPE: "killing",
METHOD: #method,
ACTOR: #name2,
VICTIM: #name1,
ACTOR_IN_EVENTS: numEvents(#name2)]

The pattern matches a sequence consisting of: a structure of type person rep-
resenting a person or group of persons who is (are) the victim, followed by a
phrase (a structure of type key-phrase) in passive form, which triggers a killing
event, and another structure of type person representing the actor. The symbol
& links a name of the FFS’s type with a list of constraints (in form of attribute-
value pairs) which have to be fulﬁlled. The variables #name1 and #name2 estab-
lish bindings to the names of both humans involved in the event. Analogously,
the variable #method establishes binding to the method of killing delivered by
the key-phrase structure. Further, there are three labels on the LHS (killed,
killer, and event) which specify the start/end position of the annotation ac-
tions speciﬁed on the RHS. The ﬁrst two actions (triggered by the labels killed
and killer) on the RHS produce FFS of type victim and actor resp., where the
value of the NAME slot is created via accessing the variables #name1 and #name2.
Finally, the third action produces an FFS of type violence. The value of the
ACTOR_IN_EVENTS attribute is computed via a call to a FO numEvents() which
contacts external knowledge base to retrieve the number of events the current
actor was involved in the past.

We have carried out some experiments to compare the run-time behavior of
EXPRESS with XTDL. In order to do this we have used the event extraction
grammar presented in Section 5.2. It was converted in almost one-to-one manner
into a XTDL grammar.4 In an experiment, the grammars were applied to a 167
MB excerpt of the news on terrorism, consisting of 122 ﬁles on a PC Pentium 4
machine with 2,79 GHz. The average run-time for processing a single document
(average size of 1,37 MB) for EXPRESS and XTDL interpreter was 5.57 sec. and
58.30 sec. respectively, i.e, EXPRESS was circa 10 times faster. It is important
to note that the average number of matches per document amounted to ca. 60
000 and that time given above included deployment of core linguistic process-
ing components by both engines.5 The time consumed by pattern matcher of
EXPRESS and XTDL disregarding the time needed to deploy core linguistic
processing components amounted to 50.34 sec. and 2.56 sec. respectively.

A comprehensive overview of the techniques for compiling and processing
grammars and the entire ExPRESS engine as well as more detailed description

4 It turned to be a relatively simple task since the core linguistic components provided
with EXPRESS have nearly identical functionality and I/O speciﬁcation as those
used in SPROUT. However, some rules had to be expressed as two rules in XTDL
since XTDL rules do not allow for specifying more than one output structure directly.
5 Both engines used the same type of components, namely tokenizers, gazetteers and

morphological analysis component.

194

J. Piskorski et al.

of the run-time performance comparison of ExPRESS, XTDL and JAPE is
given in [18].

5.2 Event Extraction Grammars

There are two diﬀerent approaches to building event extraction grammars:

– the complexity of the language is represented at the level of lexical descrip-
tions, where each word in the lexicon is provided with a rich set of semantic
and syntactic features [2,23],

– the complexity of the language is represented through diﬀerent, mostly lin-
ear, patterns in the grammar, which rely on superﬁcial or less sophisticated
linguistic features [32].

Providing rich lexical descriptions like verb sub-categorization frames in [2] or
ontologies in [23] requires a linguistic expertize, on the other hand, more shal-
low lexical descriptions will result in more patterns to encode the necessary
linguistic knowledge. However, superﬁcial patterns are closer to the text data.
We believe that their creation is more intuitive and easier for non-experts than
building ontologies or sub-categorization frames. Writing such patterns is easier
for languages like English, where the word ordering obeys strict rules and the
morphological variations are not an important issue. Therefore, we followed this
approach when creating our English event extraction grammar.

This grammar in its current version consists of two subgrammars. The ﬁrst-
level subgrammar contains patterns for recognition of proper names, e.g., person
names (Osama bin Laden), and small-scale structures, e.g., unnamed person
groups (at least ﬁve civilians), named person groups (More than thousands of
Iraqis), etc. As an example consider the following rule for detecting mentions of
person groups.

person-group :> ((gazetteer & [GTYPE: "numeral",

SURFACE: #quant,
AMOUNT: #num])
(gazetteer & [GTYPE: "person-modifier"])?
(gazetteer & [GTYPE: "person-group-proper-noun",

SURFACE: #name1])

(gazetteer & [GTYPE: "person-group-proper-noun",

SURFACE: #name2])):name

-> name: person-group & [QUANTIFIER: #quant,

AMOUNT: #num,
TYPE: "UNNAMED",
NAME: #name,
RULE: "person-group"],

& #name = Concatenate(#name1,#name2).

This rule matches noun phrases (NP), which refer to people by mentioning their
nationalities, religion or political group to which they belong, e.g. three young

Online News Event Extraction for Global Crisis Surveillance

195

Chinese, one Iraqi Muslim, three young Maoists. The words and phrases which
fall in the category person-group-proper-noun, numeral and person-modifier
(e.g. young) are listed in a domain-speciﬁc lexicon (gazetteer) together with a
number of other semantic classes relevant for the domain. In this way the gram-
mar rules are being kept less language dependent, i.e., rules can be applied to
languages other than English, provided that language-speciﬁc dictionaries back
up the grammar. As it will be shown in Section 5.4, semantic categories can be
populated semi-automatically using machine learning techniques.

Through abstracting from surface forms in the rules themselves the size of
the grammars can be kept relatively low and any modiﬁcations boils down to
extending the lexica, which makes the development for non-experts straight-
forward. Further, the ﬁrst-level grammar does not rely on morphological in-
formation and uses circa 40 ﬁne-grained token types (e.g., word-with-hyphen,
opening-bracket, word-with-apostrophe, all-capital-letters), which are
to a large extent language independent. Consequently, the majority of the ﬁrst-
level grammar rules for English can be used for processing texts in other lan-
guages. For instance, the following rule for recognition of person names (a title
followed by a ﬁrst name and a capitalized word) is applicable to many languages.

person :> ((gazetteer & [GTYPE: "title",

SURFACE: #title)

(gazetteer & [GTYPE: "firstName",

SURFACE: #fname])

(token &

[TYPE: "alphaFirstCapitalized",

SURFACE: #surname])):name

-> name: person & [NAME: #name],

& #name = Concatenate(#title,#fname,#surname).

Clearly, some of the rules might not be applicable for some languages due to the
diﬀerences in syntactic structure, but they are intuitively easily modiﬁable.

The second-level subgrammar consists of patterns for extracting partial infor-
mation on events: actors, victims, type of event, etc. Since the event extraction
system is intended to process news articles which refer to security and crisis
events, the second-level grammar models only domain-speciﬁc language con-
structions. Moreover, the event extraction system processes news clusters which
contain articles about the same topic from many sources, which refer to the
same event description with diﬀerent linguistic expressions. This redundancy
mitigates the eﬀect of phenomena like anaphora, ellipsis and complex syntactic
constructions. As mentioned earlier, the system is processing only the ﬁrst sen-
tence and the title of each article, where the main facts are summarized in a
straightforward manner, usually without using coreference, sub-ordinated sen-
tences and structurally complex phrases. Therefore, the second-level grammar
models solely simple syntactic constructions via utilization of 1/2-slot extraction
patterns like the ones given below. The role assignments are given in brackets.

[1] PERSON-GROUP <DEAD> "were killed"
[2] {PERSON | PERSON-GROUP} <DEAD> "may have perished"

196

J. Piskorski et al.

[3] PERSON-GROUP <DEAD> "dead"
[4] "police nabbed" PERSON <ARRESTED>
[5] PERSON-GROUP <DISPLACED> "fled their homes"
[6] PERSON <DEAD> "was shot dead by" PERSON <PERPETRATOR>

These patterns are similar in spirit to the ones used in AutoSlog [26]. They
are acquired semi-automatically (see 5.3). The fact that in English the word
ordering is more strict and the morphology is simpler than in other languages
contributes also to the coverage and accuracy of the patterns, which encode
non-sophisticated event-description phrases.

To sum up, event extraction system discards the text, which goes beyond the

ﬁrst sentence for the following reasons:

– handling more complex language phenomena is hard and might require know-

ledge-intensive processing,

– the most crucial information we seek for is included in the title or ﬁrst

sentence,

– if some crucial information has not been captured from one article in the

cluster, we might extract it from other article in the same cluster.

In order to keep the grammar concise and as much as possible language indepen-
dent, we represent in the grammar all surface-level linear patterns via pattern
types, which indicate the position of the pattern with respect to the slot to be
ﬁlled (left or right). To be more precise, all patterns are stored in a domain-
speciﬁc lexicon (applied prior to grammar application), where surface patterns
are associated with their type, the event-speciﬁc semantic role assigned to the
entity which ﬁlls the slot (e.g., WOUNDED, KIDNAPPED, DISPLACED, etc.) and the
number of the phrase which may ﬁll the slot (singular, plural, or both). For in-
stance, the surface pattern "shot to death" for recognizing dead victims as a
result of shooting, is encoded as follows.

shot to death [TYPE: right-context-sg-and-pl,

SURFACE: "shot to death",
SLOTTYPE: DEAD]

The value of the TYPE attribute indicates that the pattern is on the right-hand-
side of its slot (right-context), which can be ﬁlled by a phrase which refers to
one or many people (sg-and-pl). The event-speciﬁc semantic role, assigned to
each NP ﬁlling the slot is DEAD. Via such an encoding of event-triggering linear
patterns, the extraction patterns [1] and [3] from the list given above are merged
into one (in a simpliﬁed form):

dead-person :> person-group

gazetteer & [TYPE: right-context-sg-and-pl

SLOT: dead]

-> ...

Interestingly, we have found circa 3000 event-triggering domain-speciﬁc surface
patterns for English. Clearly, the strict word ordering and relatively simple mor-
phology allowed for easy generation of pattern variants.

Online News Event Extraction for Global Crisis Surveillance

197

5.3 Pattern Acquisition

For creating second-level grammar patterns described in previous section a weak-
ly supervised machine learning (ML) algorithm has been deployed. It is similar in
spirit to the bootstrapping algorithms described in [15,33]. In particular, the pat-
tern acquisition process involves multiple consecutive iterations of ML followed
by manual validation. Learning patterns for each event-speciﬁc semantic role re-
quires a separate cycle of learning iterations. The method uses clusters of news
articles produced by EMM. Each cluster includes articles from diﬀerent sources
about the same news story. Therefore, we assume that each entity appears in the
same semantic role in the context of one cluster (’one sense per discourse’ [11]).
The core steps of the pattern acquisition algorithm are as follows:

1. Annotate a small corpus with event-speciﬁc information,
2. Learn automatically single-slot extraction patterns from annotated corpus,
3. Manually validate/modify these patterns,
4. If the size of the pattern set exceeds certain threshold, then terminate,
5. Match the patterns against the full corpus or part of it,
6. Assign semantic roles to entities which ﬁll the slots,
7. Annotate automatically all the occurrences of these entities in all articles in
the same cluster with the corresponding role this entity has been assigned
in the previous step and goto 2.

An automatic procedure for syntactic expansion complements the learning, i.e.,
based on a manually provided list of words which have identical (or nearly identi-
cal) syntactic model of use (e.g. killed, assassinated, murdered, etc.) new patterns
are generated from the old ones by substituting for each other the words in the
list. Subsequently, some of the automatically acquired single-slot patterns were
used to manually create 2-slot patterns like X shot Y. The pattern acquisition
process is described thoroughly in [28].

5.4 Semi-supervised Learning of Semantic Categories

The other main step towards language and domain customization of the lexi-
cal resources deployed by extraction grammar is the population of the domain-
speciﬁc semantic classes referenced by grammar rules. The task is also partially
automated through application of machine learning techniques.

A semi-supervised system, Ontopopulis, is deployed which takes as input a
small set of sample phrases belonging to a target semantic class (seed terms) and
a unannotated corpus of news article, and then further populates the semantic
class with new instances (terms) [30].

The learning process consists of two steps: a ‘Feature extraction and weighting’
stage, where context features for a category C are selected among the uni-grams
and bi-grams co-occurring with any of the seed terms of C, and then weighted
and ordered based on a Pointwise Mutual Information measure; a ‘Term selection
and scoring’ stage exploiting a term feature vector representation, based on co-
occurrence between candidate terms and features. The whole learning process

198

J. Piskorski et al.

is semi-supervised, as a minimal human intervention is required in the form of
manual selection of context feature output between the two stages.

An evaluation of the learning accuracy performance was carried out for Span-
ish and Portuguese language on a number of semantic categories, such as Person,
Weapon, Crime, Infrastructure,etc. As an example, for the classes Person and
Weapon in Spanish, term precision scored 71% and 14%, respectively, while pre-
cision on the 20 top ranked terms raised to 95% and 60%, with seed set size of
56 and 22 and generative factors of 7.2 and 5.6, respectively. This shows that,
while absolute accuracy is highly dependent on the target category, the tool is
generally able to properly rank the learned terms based on their semantics.

5.5 Multilinguality

The English event extraction grammar described in the previous section relies
mainly on a multilingual named-entity recognition grammar, language-speciﬁc
dictionary of NE-relevant trigger words, and a language-speciﬁc dictionary of
surface-level event extraction patterns. In this way adapting the current event
extraction grammar to new languages does not require much linguistic expertise.
We have extended the system to the processing of Italian, Spanish, Por-
tuguese, French, Russian and recently Arabic through providing the aforemen-
tioned language-speciﬁc resources. Although the system’s precision was as high
as expected, an empirical coverage analysis for Italian showed that there are
some drawbacks when surface-level patterns are applied. This is mainly due to
the free-word order and relative morphological richness of Romance languages.
Further, Italian appears to be more verbose with the respect to expressing infor-
mation about events, i.e., it is structurally more complex. For instance, Italian
verb phrases describing events show some additional structural complexity at the
linear level due to the encoding of some essential information on the event, like
the ‘means’ or ‘instruments’ of a killing act, in prepositional phrases, as opposed
to English which typically uses lexical content of the main verb itself to convey
such information. This is shown in the following sample excerpts from Italian
and English articles from cross-lingual clusters about the same event returned
by EMM news aggregation system.

excite-news Monday, May 19, 2008 10:43:00 AM CEST (ANSA) -
MANILA, 19 MAG - Un uomo ha crivellato a colpi di mitra alcune
case di Calamba, una citta’ vicino Manila, uccidendo otto persone....

cnn Monday, May 19, 2008 5:58:00 AM CEST A man strafed several
houses during a shooting spree early Monday in a town south of Manila,
killing eight people and wounding six others...

Consequently, we designed a slightly more linguistically sophisticated rules for
Italian, Spanish and Portuguese, which cover a rich variety of morphological and

Online News Event Extraction for Global Crisis Surveillance

199

syntactic constructions. This yielded better overall extraction accuracy. Some
evaluation ﬁgures are given in Section 8, whereas the details of the process of
adapting the system to the processing of Italian are presented in [35]. While
we applied the same linguistic approach for Spanish and Portuguese, in [30]
we performed a preliminary evaluation on a minimal, machine learning-oriented
customization to these two languages, consisting of only a slight modiﬁcation
of the Italian person entity recognition grammar, together with the applica-
tion of the linear pattern and semantic category learning methods introduced
above. Although not impressive in absolute terms, the performance ﬁgures in
both languages show a signiﬁcant improvement with respect to the correspond-
ing baseline systems, proving the eﬀectiveness of the customization methods in
addressing the multilinguality challenge.

Although we are currently developing linguistic resources for tackling the
event extraction task for Arabic (EMM has some 86 diﬀerent news sources in
this language) and apply similar techniques as for English, our initial approach
was slightly diﬀerent. First, statistical machine translation systems were used
for translating the articles in the Arabic clusters into English. Next, these trans-
lations were passed into the English event extraction system. In particular, we
integrated two Arabic-to-English translation systems into the live processing
chain, namely Google Translate 6 and LanguageWeaver 7. We plan to compare
the results of this approach with a ﬁrst release of a full-ﬂedged event extraction
system for Arabic.

6 Information Fusion

Once the event extraction grammars has been applied locally at document level
the single pieces of information are merged into fully-ﬂedged event descriptions.
In particular, three tasks are performed at this level: (a) semantic role disam-
biguation, (b) victim counting, and (c) event type classiﬁcation. They are de-
scribed brieﬂy.

Semantic Role Disambiguation: If one and the same entity has two roles
assigned in the same cluster, a preference is given to the role assigned by the
most reliable group of patterns. The double-slot patterns are considered the
most reliable. Regarding the one-slot constructions, patterns for detection of
killed, wounded, and kidnapped are considered as more reliable than the ones for
extraction of the actor (perpetrator) slot (the latter one being more generic).
The pattern reliability ranking is based on empirical observations.

Victim Counting: Another ambiguity arises from the contradictory informa-
tion which news sources give about the number of victims (e.g., killed) An ad-hoc
algorithm for computing the most probable estimation for these numbers is ap-
plied. It ﬁnds the largest group of numbers which are close to each other and

6 http://translate.google.com/translate_t?hl=en
7 http://www.languageweaver.com

200

J. Piskorski et al.

subsequently ﬁnds the number closest to their average. All articles, which report
on number of victims which signiﬁcantly diﬀers from the estimated cluster-level
victim number are discarded. In order to perform victim arithmetics at the doc-
ument level a small taxonomy of person classes [29] is used. The article-level
victim counting algorithm consists of the following steps:

1. Extract from a news article a set of NPs E = {E1, E2, . . . , En}, which refer to
individuals or groups with deﬁnite number of people and which have certain
semantic role.

2. Map each Ei to a concept from the taxonomy using a list of keyword-
taxonomy mappings (we denote it as conc(Ei)). As an example consider the
text One journalist was beaten to death and two soldiers died in the clashes
in which four civilians lost their lives in total. Three NPs referring to killed
people would be extracted: one journalist, two soldiers and four civilians, and
mapped to the taxonomy categories journalist, serviceman, civilian.
3. Delete each Ei from E, if there exist Ej ∈ E such that conc(Ei) is-a
conc(Ej), i.e., conc(Ei) is a direct or indirect successor of conc(Ej ) in the
taxonomy. In this manner only the most generic NPs are left in E. In our
example we may identify one such relation, namely, journalist is a civilian,
therefore we delete the NP one journalist from E.

4. Sum up the numbers reported from the NPs in E. In our example we have
to sum up the numbers from the phrases four civilians and two soldiers (four
and two).

Event Type Classiﬁcation: Whenever possible, we assign a class label to
the detected violent event or disaster. Some of the most used event classes are
Terrorist Attack, Bombing, Shooting, Air Attack, Man-Made Disaster, Floods,
etc. The event type classiﬁcation algorithm uses a blend of keyword matching,
taxonomy of event types and domain speciﬁc rules.

First, all potential event types are assigned ranks based on the matching of
type-speciﬁc keywords in the articles in a given cluster (a rank for a given type
is set to zero if no keyword related to this type was matched in the articles in
the given cluster). Next, a non-zero valued rank of a more speciﬁc event type
is boosted in case the rank of the type which subsumes it is non zero. The
logic behind this step is that when some event takes place, it can be referred
to at diﬀerent levels of abstraction and the most speciﬁc reference should be
preferred, since it is the most informative. Finally, the type with the highest
rank is selected, unless some domain-speciﬁc event type classiﬁcation rule (they
have higher precedence) can be applied. As an example, consider the following
domain speciﬁc rule: if the event description includes named entities, which are
assigned the semantic role Kidnapped, as well as entities which are assigned the
semantic role Released, then the type of the event is Hostage Release, rather than
Kidnapping. Such rules were introduced based on empirical observations.

It is important to note that the information fusion algorithm has some limi-
tations since it considers only one main event per news cluster, ignoring events
of lower importance or incidents subsumed by the main event.

Online News Event Extraction for Global Crisis Surveillance

201

We recently replaced the simple keyword matching mechanism initially de-
ployed with a more expressive regular expression pattern matching engine,
powered with boolean operators. Experiments on French and Italian language
indicate a signiﬁcant comparative advantage of boolean combinations of patterns
over simple keywords in terms of accuracy.

7 Live Event Tracking

Multilingual crisis-related event tracking poses a number of practical issues,
mainly related to the correct geo-spatial visualization of the event together with
it’s principal characteristics. Another concern is to minimize constraints on end
users to rely on expensive and proprietary desktop applications. We fulﬁll these
issues by publishing the event data using current Internet standard formats,
namely, KML and GeoRSS. In particular, the results of the event extraction are
accessible in two ways:

– via Google Earth application which is passed event descriptions in KML

format8,

– via a publicly accessible web client9 that exploits the Google Maps technolo-

gies and connects to our KML server

The event description interface provides elements in two languages. The title, de-
scription and the precise location of the event is presented in the native language
of the event, i.e., the language of the cluster being processed. In the English lan-
guage we provide the event consequences and the relative geographical path to
the place. The diagram in Figure 5 shows the Google Earth user interface for
French, Arabic and Italian respectively.

To provide immediate clues on the cause and eﬀect of the event we use three
visual indicators: the icon image of the event type that is geo-located on the
map; the size of the icon depends on the size of the cluster; and the magnitude
of the consequence of the event is indicated by a colored circle around the event.
A key to the symbols used in our system is given in Figure 6.

The image in Figure 7 shows the Google Maps representation of the results of
the event extraction system (in Russian). The balloon shows a heat wave event
that occurred in Moscow on 28 April 2009.

8 Event Extraction Evaluation

An evaluation of the event extraction performance has been carried out on 368
English-language news clusters based on news articles downloaded on 24 January
2008. 29 violent events are described in these clusters and 27 out them were
8 For English: start Google Earth application with KML:

http://press.jrc.it/geo?type=event&format=kml&language=en. For other lan-
guages change the value of the language attribute accordingly.

9 http://press.jrc.it/geo?type=event&format=html&language=en

202

J. Piskorski et al.

Fig. 5. Event visualization in Google Earth: Diagram showing events detected in
French, Arabic and Italian. Note that the event meta data is expressed in English
whilst the original, title and description are maintained.

detected by our system (93% coverage). In some cases several clusters referred
to the same event. We consider that an event is detected by the system, if at
least one cluster referring to it was captured.

Our system detected 55 news clusters which refer to 37 violent and non-violent
events. 27 out of these 37 detected events are violent events (73% precision).
In the context of crisis monitoring, discovery of disasters causing victims may
also be considered relevant. Our system detected 3 man made disasters; if we
consider them relevant together with the violent events, then the precision of the
event extraction becomes 81%. With respect to victim counting, for the number
of dead and injured an accuracy of 80% and 93% could be achieved respectively.
The event type detection performs signiﬁcantly worse, i.e., only in 57% of the
cases the correct event type could be assigned.

One of the most frequent errors in event classiﬁcation was in case of clusters
referring to terrorist bombing, which were not classiﬁed as Terrorist Attack, but
simply as a Bombing. Another problem is that classiﬁcation based on simple
keyword matching sometimes gives wrong results, e.g., an airplane crash was

Online News Event Extraction for Global Crisis Surveillance

203

Key to Symbols

?

Kidnap
K

Arrest
A

Release
R

Video V
V

Violent Event
Undeﬁned

Violent Event
Killed

Violent Event
Injured

Violent Event
Kindnapped

Violent Event
Arrest

Hostage 
Release

Video
Release

Violent Event
No Consequneces

Humanitarian
Crisis

(cid:1)

Man
Made

!
ND

Man Made
Disaster

Man Made 
Fire

Man Made
Explosion

Trial

Natural
Dister

Volcanic 
Eruption

Tsunami

Earthquake

Landslide

(cid:1)

Avalanche

Tropical
Storm

Lightning
Strike

Storm

Snow
Storm

Consequence Signiﬁcance (number of people involved)

Flood

Wild Fire

Heatwave

Unclassiﬁed

No Circle  = up to 10

Yellow Circle= between 10 and 100

Red Circle = More than 100

Fig. 6. Key to event type icons and magnitude indicators

Fig. 7. Event visualization in Google Maps: The balloon shows a heat wave event that
occurred in Moscow on 28 April 2009

204

J. Piskorski et al.

classiﬁed as Air Attack, since a military plane was involved. Further, there are
situations, in which two diﬀerent incidents are reported as a part of one event.
For example, a terrorist attack might include bombing and shooting. In such
cases only one label is assigned to the whole event, although two labels would
be more appropriate.

We have repeated the evaluation of the event extraction on several days, which

yielded on an average similar accuracy ﬁgures to the ones reported above.

In order to evaluate the coverage and accuracy of the Italian event extraction
system, we tested it on 213 clusters of news articles gathered during 4 consecutive
days in July, 2008. Only part of the clusters were related to violent event stories.
On this corpus, we ran both the baseline version of the system, namely the one
based on linear patterns, and a hybrid version containing the more abstract rules
(see Section 5.5) together with a subset of highly irregular linear patterns, which
were not converted into more abstract rules. The rationale for this is that we de-
ploy abstract rules in order to deal with productive, structurally complex language
constructions, while backing oﬀ to surface level patterns to cover more idiomatic
constructions. Table 2 shows a comparative evaluation of the two Italian event ex-
traction systems. In particular, we measured precision, recall and F-measure for
each role. For the sake of clarity, we deﬁne formally these measures. For a given slot
type (role) T , let sT be the number of slot values (answers) returned by the system,
and let scT denote the number of correct answers (correct slot values) extracted by
the system for the role T . Next, let allT be the number of slot values annotated by
a human expert as a value (answer) for the role T in the whole test corpus (ground
truth). Then, the recall, precision for role T are deﬁned as: recallT = |scT |/|allT |
and precisionT = |scT |/|sT |. F-measure is deﬁned as the mean of precision and
recall, i.e. FT = (2 · precisionT · recallT )/(precisionT + recallT ). The results of
the evaluation are given in Table 2.

A clear gain in recall could be observed. A thorough analysis revealed that
it was mainly due to deploying morphological abstraction and the productivity
achieved through more abstract patterns. In particular, one case was interesting.
Actor role ﬁllers are usually the hardest to be extracted from Italian text, as
their relationship with the main event verb is either to be derived through deep
semantic or even pragmatic inferences, or extracted through complex two-slot
patterns. Precision gain was smaller. In one particular case a deterioration in
precision could be observed, namely in the case of Arrested role. Further details
of the evaluation for Italian are given in [35]. Some evaluation ﬁgures for Spanish
and Portuguese are presented in [30]

9 Event Reporting Boundaries

The major goal of applying an event extraction engine on top of EMM news
clusters is to gather and update information about crisis-related events over
time. Therefore, for each news story the events extracted by Nexus at diﬀerent
time points are stored in a database. One of the major problems in this context
is to detect duplicate events or to put it in other words, to detect new events in

Online News Event Extraction for Global Crisis Surveillance

205

Table 2. Comparison of the extraction accuracy for Italian for diﬀerent roles with the
baseline grammar (BL) and linguistically rich grammar (LR). P, R and F1 stand for
precision, recall and F-measure.

Dead

Injured

Actor

Arrested

BL
0.82
0.48
0.60

LR
0.91
0.84
0.87

BL
0.66
0.15
0.24

LR
0.77
0.53
0.62

BL
0
0
0

LR
0.66
0.25
0.36

BL
0.83
0.55
0.66

LR
0.70
0.66
0.67

P
R
F1

a news story. We consider a news story to be a sequence of news article clusters,
where each such cluster contains news articles on a given topic gathered within
a certain time window as the story evolves (see Section 3). Each such cluster is
also associated with an event description generated by Nexus for this particular
cluster.

9.1 New Event Detection Techniques

We have explored several techniques for detecting new events in a given news
story. First, we experimented with a relatively simple method, which computes
the similarity between a currently extracted event and a previously extracted one
(in a previous iteration) using an event similarity metric based on the content
similarity of the corresponding slot values in the events being compared. In case
the similarity is below a certain threshold the two events are considered to be
distinct. Subsequently, this method was extended by introducing additional con-
straints on the conﬁdence with which the current and past events were extracted
by Nexus. Conﬁdence is simply measured in terms of supporting documents,
i.e. documents for which Nexus could return an event description compared
with the total number of articles in the cluster. Further ﬁne-tuning consisted
of introducing some global constraints, e.g. the similarity between the current
event and the average event similarity within a whole story has to be lower than
a certain pre-deﬁned threshold, otherwise the current event is considered to be a
new event. We refer to the techniques described in this paragraph as OVERLAP.
Next, we investigated whether utilization of a curvature-based approach for
topical segmentation of a stream of texts can improve the performance of new
event detection. The basic idea behind such approaches to topic development
analysis [7,13,1,25] is to compute for a given sequence of text entries t1, t2, . . . , tk
a sequence s1,2, s2,3, . . . , sk−1,k, where si−1,i is the similarity between ti−1 and
ti. The latter sequence is called similarity curve and reﬂects how rapidly the
content of the text stream changes between consecutive entries. In order to
identify topically coherent segments one can use local minima of the similar-
ity curve as indicators of segment boundaries, i.e. topic shift occurs at local
minima. In the context of the new event detection task, our idea is to compute
such a similarity curve for a given news story, and to use it for validating the
decisions on tagging events as new, etc. In particular, for a given news story we

206

J. Piskorski et al.

compute the similarity curve for the text sequence t1, t2, . . . , tk, where ti consists
of the titles and ﬁrst sentences of the new articles in the story cluster at time
i, i.e. articles, which appeared for the ﬁrst time at iteration i.10 Subsequently,
events extracted by Nexus are tagged as new only if certain patterns in the
similarity curve (indicating a topic change) can be observed (e.g., local minima).
Although the brieﬂy sketched idea of classical curvature-based algorithms for
topic development analysis is eﬀective, we have not used it for two reasons:

– it performs best in the case of text streams with ’clear’ changes of topics,
which is not necessarily the case in the context of news stories oscillating
around one or two major topics, and

– it captures solely the pairwise relationship between two adjacent entries in
the text stream, whereas capturing the global relations between entries in the
text stream would provide more useful and ﬁne-grained information in topic
development.11

Therefore, we applied a diﬀerent algorithm for computing the similarity curve,
namely the recently introduced CUTS algorithm presented in [25], which cap-
tures global relations between text entries in the input stream of texts. The
sequence of text entries is mapped to a curve, which reﬂects the topic devel-
opment patterns in terms of dissimilarity between neighbouring text entries.
Unlike other curvature-based topical text segmentation algorithms, which uti-
lize solely information of pairwise (dis)similarity between adjacent entries in
the input sequence, CUTS algorithm exploits broader context, i.e. ’content’ dis-
similarities for all pairs of entries in the input. To be more precise, the initial
sequence of text entries is mapped to a 1-dimensional space so that distances
between points best match the dissimilarities between the corresponding entries.
The aforementioned mapping is computed through the application of a multi-
dimensional scaling (MDS) technique [8] applied on the dissimilarity matrix for
the input sequence. Next, the time dimension is added, i.e. each point in time –
index of the entry in the input sequence (x-axis) is mapped to the corresponding
MDS-computed value in the 1 dimensional space (y-axis). The resulting curve
is called CUTS curve. A ’stable’ topic in CUTS curve corresponds to an almost
horizontal segment (dominated segment). A smooth transition from one topic
to another is reﬂected in the CUTS curve as a sloping curve (drifting segment),
where the gradient angle measures how fast one topic fades out and new topic
fades in. Finally, interruptions, i.e. sudden and temporary introduction of a new
and signiﬁcantly diﬀerent topic, correspond to segments with a saw tooth shape.
Interruptions may either occur within dominated or drifting segments. Figure 8
illustrates a drifting segment and a dominated segment with an interruption in
CUTS curves computed for some of the news stories computed by EMM.

10 In case of iterations in which there are no new articles, we consider for the compu-
tation of ti the documents which were most recently added to the story cluster.
11 Diﬀerent news media might report on the same event at diﬀerent times and even the

same media might re-report on the same event from time to time.

Online News Event Extraction for Global Crisis Surveillance

207

Drifting Segment

CUTS

 4

 3

 2

 1

 0

-1

-2

-3

e
u
a
v

l

d
e
t
u
p
m
o
c
-
S
D
M

-4

 0

 1

 2

 3

entry index

 4

 5

 6

Dominated Segment with Interruptions

CUTS

 4

 3

 2

 1

 0

-1

-2

-3

e
u
a
v

l

d
e
t
u
p
m
o
c
-
S
D
M

-4

 0

 5

 10

 15

entry index

 20

 25

 30

Fig. 8. An example of a drifting segment (top) and a dominated segment with an
interruption (bottom) The interruption in the interval (15, 20) refers most likely to a
new event or possibly to some noise in the news story cluster in this interval.

 
 
208

J. Piskorski et al.

The main idea behind the CUTS-based algorithm for new event detection is
that predominantly interrupted or drifting segments in the CUTS curve occur
directly prior to the new event. In other words, the number of articles on a new
topic or aspect of the main event of the story has reached a critical mass. Since
many news stories are not stable in the initial iterations, the exact conditions
(for the CUTS curve), which have to be fulﬁlled are slightly diﬀerent for the
beginning of the story and subsequent iterations, e.g., the threshold for the
gradient angle in the drifting segment in order to classify an event as new is
higher for the beginning of the story than for subsequent iterations.

Finally, we have combined the simple algorithms described at the beginning of
this section (OVERLAP) with the CUTS algorithm (we denote this combination
as OVERLAP+CUTS). To be more precise, the CUTS constraints are embed-
ded in the OVERLAP algorithms as additional ones. Furthermore, in case the
original constraints of OVERLAP algorithms do not hold, but ‘almost’ hold (val-
ues are within a certain distance to the thresholds, etc.) the CUTS constraints
are checked, and if they hold the event is tagged as a new one. A more detailed
description of the algorithms for detecting event reporting boundaries are given
in [21].

9.2 Evaluation

We have carried out an evaluation of the diﬀerent new event detection tech-
niques described in the previous section. For this purpose, we have collected test
data as follows. Nexus was applied at 30 minute intervals on the English news
clusters produced by EMM between 6 and 16 October 2008. In this time period
6664 diﬀerent news stories were collected, where 1296 of them were related to
violent and natural disaster events. About one third of the latter (442) were
dynamic, i.e. at least two distinct event descriptions were generated for such
stories. We have applied the diﬀerent algorithms on a subset thereof, consisting
of 125 stories (in which the event type changed) and we have evaluated their
precision, recall and F-measure. Let E be the set of automatically detected new
events in the test corpus described above and let E∗ be the set of events an-
notated as new events by a human expert. We call the latter set the ground
truth. The recall is the ratio of correctly detected new events and all events in
the ground truth, i.e. recall = |E ∩ E∗|/|E∗|. We deﬁne precision as the frac-
tion of events, which were correctly tagged by the algorithm as new events, i.e.
precision = |E ∩ E∗|/|E|. F-measure is deﬁned as the mean of precision and
recall, i.e. F −measure = (2 · precision · recall)/(precision + recall). Table 3
presents the top results obtained for precision, recall and F-measure separately.
While integration of CUTS-based constraints into simple methods resulted in a
signiﬁcant improvement in precision, the simple methods score best in terms of
recall and F-measure. As can be observed from the table there is much room for
improvement. A more thorough discussion on this topic is given in [21].

Online News Event Extraction for Global Crisis Surveillance

209

Table 3. Top results obtained for detecting new events with diﬀerent techniques. P, R
and F1 stand for precision, recall and F-measure.

R

method
P
0.516 0.769 0.615
OVERLAP
CUTS
0.385 0.392
0.4
OVERLAP+CUTS 0.75 0654 0.583

F1

10 Summary

This article presented a real-time and multilingual news event extraction system
developed at the Joint Research Centre of the European Commission. Currently,
it is capable of eﬃciently processing news in English, Italian, French, Span-
ish, Portuguese, Russian and Arabic, which provide descriptions of the latest
crisis-related events around the world with a 10-minute delay. The results of the
evaluation on violent and natural disaster event extraction show satisfactory per-
formance and strong application potential for real-time global crisis monitoring.
In order to guarantee ease in maintenance and extensibility to new languages
and domains a shallow text processing strategy has been chosen, which utilizes
clustered data at diﬀerent strata. The coverage and the level of sophistication
of language resources used in the system varies from language to language. The
results of the live event extraction are provided via a publicly accessible web
page and can also be accessed with the Google Earth application. The system
has been fully implemented in JAVA.

In order to improve the quality of the extracted event descriptions, several
system extensions are envisaged. Firstly, we are working towards ﬁne grained
classiﬁcation of natural and man made disasters. We also plan to improve the
classiﬁcation accuracy for violent events. Secondly, we aim at extending the sys-
tem to new languages. This is feasible, since our algorithms and grammars are
mostly language independent. In particular, we currently focus on adapting the
system to the processing of Arabic news. Being able to extract information about
same event in diﬀerent languages and cross-linking them adds an additional nav-
igation layer and an opportunity for fact validation and improving the accuracy
of the system. Therefore, we plan to explore techniques for reﬁning the results of
event extraction, which are similar in spirit to those presented in [14]. Further-
more, we intend to study the usability of event descriptions collected over time
for the same purpose. The experiments on detecting event reporting boundaries
brieﬂy reported in this article and in [21] show that there is a lot of space for im-
provement. Therefore, we will pursue this line of research. Next, a long-term goal
is to automatically discover structure of events and relations between them, i.e.,
discovering sub-events or related events of the main one, as well as implementing
techniques for event duplicate detection.

The range of events the system already detects is relatively wide, which makes
the tool very attractive for application in various scenarios. Nevertheless, the
system is currently being customized to new domains, in particular, to detect

210

J. Piskorski et al.

border-security related events (e.g., illegal border crossings and related cross-
border criminal activities) [22] and outbreaks of infectious diseases in the public
health domain. Although the accuracy of detecting certain types of events is
quite satisfactory we can not fully eliminate human moderation in the process of
gathering event information in a database. In order to facilitate this task a graph-
ical interface has been implemented that allows users to correct, extend, merge,
translate and store automatically extracted event information on events [22] in
an event store – a speciﬁc knowledge repository on events. Finally, some work on
improving geo-locating events through deployment of shallow linguistic analysis
(along the lines sketched in section 4) is envisaged too.

Acknowledgments. The work presented in this article was supported by the
Europe Media Monitoring (EMM) Project carried out by the Open Source Text
Information Mining and Analysis Action in the Joint Research Centre of the
European Commission. We are indebted to all our EMM colleagues without
whom the presented work could not have been be possible.

References

1. Andrews, P.: Semantic topic extraction and segmentation for eﬃcient document
visualization’ Master’s thesis, School of Computer & Communication Sciences,
Swiss Federal Institute of Technology, Lausanne (2004)

2. Aone, C., Santacruz, M.: REES: A Large-Scale Relation and Event Extraction
System. In: Proceedings of ANLP 2000, 6th Applied Natural Language Processing
Conference, Seattle, Washington, USA (2000)

3. Appelt, D.: Introduction to Information Extraction Technology. In: Tutorial held

at IJCAI 1999, Stockholm, Sweden (1999)

4. Ashish, N., Appelt, D., Freitag, D., Zelenko, D.: Proceedings of the workshop on
Event Extraction and Synthesis’, held in Conjunction with the AAAI 2006 Con-
ference, Menlo Park, California, USA (2006)

5. Atkinson, M., Van der Goot, E.: Near Real Time Information Mining in Multi-
lingual News. In: Proceedings of the 18th World Wide Web Conference, Madrid,
Spain (2009)

6. Best, C., Van der Goot, E., Blackler, K., Garcia, T., Horby, D.: Europe Media

Monitor, Technical Report, EUR 22173 EN, European Commission (2005)

7. Brants, T., Chen, F., Farahat, A.: A System for New Event Detection. In: Pro-
ceedings of the 26tth Annual International ACM SIGIR Conference on Research
and Development in Information Retrieval, New York, NY, USA (2003)

8. Cox, T., Cox, M.: Multidimensional Scaling. In: Monographs on Statistics and

Applied Probability, 2nd edn., Chapman & Hall, London (2001)

9. Cunningham, H., Maynard, D., Tablan, V.: Jape: a Java Annotation Patterns En-
gine. Technical Report, CS–00–10, University of Sheﬃeld, Department of Computer
Science (2000)

10. Drożdżyński, W., Krieger, H.-U., Piskorski, J., Schäfer, U., Xu, F.: Shallow Pro-
cessing with Uniﬁcation and Typed Feature Structures — Foundations and Appli-
cations. Künstliche Intelligenz 1 (2004)

Online News Event Extraction for Global Crisis Surveillance

211

11. Gale, W., Church, K., Yarowsky, D.: One sense per discourse. In: HLT 1991: Pro-
ceedings of the workshop on Speech and Natural Language, Harriman, New York,
USA (1992)

12. Grishman, R., Huttunen, S., Yangarber, R.: Real-time Event Extraction for Infec-
tious Disease Outbreaks. In: Proceedings of Human Language Technology Confer-
ence 2002, San Diego, USA (2002)

13. Hearst, M.: Subtopic structuring for full-length document access. In: Post-

proceedings of SIGIR (1993)

14. Ji, H., Grishman, R.: Reﬁning Event Extraction through Unsupervised Cross-
document Inference. In: Proceedings of 46th Annual Meeting of the Association
for Computational Linguistics: Human Language Technologies, Columbus, Ohio,
USA (2008)

15. Jones, R., McCallum, A., Nigam, K., Riloﬀ, E.: Bootstrapping for Text Learn-
ing Tasks. In: Proceedings of IJCAI 1999 Workshop on Text Mining, Stockholm,
Sweden (1999)

16. King, G., Lowe, W.: An Automated Information Extraction Tool For International
Conﬂict Data with Performance as Good as Human Coders: A Rare Events Eval-
uation Design. International Organization 57, 617–642 (2003)

17. Naughton, M., Kushmerick, N., Carthy, J.: Event Extraction from Heterogeneous
News Sources. In: Proceedings of the AAAI 2006 Workshop on Event Extraction
and Synthesis, Menlo Park, California, USA (2006)

18. Piskorski, J.: ExPRESS – Extraction Pattern Recognition Engine and Speciﬁcation
Suite. In: Proceedings of the International Workshop Finite-State Methods and
Natural language Processing 2007 (FSMNLP 2007), Potsdam, Germany (2007)
19. Piskorski, J.: CORLEONE – Core Linguistic Entity Online Extraction, Technical
Report, EN 23393, Joint Research Center of the European Commission, Ispra, Italy
(2008)

20. Piskorski, J., Tanev, H., Atkinson, M., Van der Goot, E.: Cluster-Centric Approach
to News Event Extraction. In: Proceedings of the International Conference on
Multimedia & Network Information Systems. IOS Press, Poland (2009)

21. Piskorski, J.: Exploring Curvature-based Topic Development Analysis for Detecting
Event Reporting Boundaries. In: Marciniak, M., Mykowiecka, A. (eds.) Aspects of
Natural Language Processing. LNCS, vol. 5070, pp. 311–331. Springer, Heidelberg
(2009)

22. Piskorski, J., Atkinson, M., Belyaeva, J., Zavarella, V., Huttunen, S., Yangarber,
R.: Real-Time Text Mining in Multilingual News for the Creation of a Pre-frontier
Intelligence Picture. In: Proceedings of the 16th Conference on Knowledge Discov-
ery and Data Mining (KDD 2010). ACM SIGKDD Workshop on Intelligence and
Security Informatics, Washington DC, USA (2010)

23. Popov, B., Kiryakov, A., Ognyanoﬀ, D., Manov, D., Kirilov, A., Goranov, M.:
Towards Semantic Web Information Extraction. In: Proceedings of International
Semantic Web Conference, Sundial Resort, Florida, USA (2003)

24. Pouliquen, B., Kimler, M., Steinberger, R., Ignat, C., Oellinger, T., Blackler, K.,
Fuart, F., Zaghouani, W., Widiger, A., Forslund, A., Best, C.: Geocoding multi-
lingual texts: Recognition, Disambiguation and Visualisation. In: Proceedings of
LREC 2006, Genoa, Italy, pp. 24–26 (2006)

25. Qi, Y., Candan, K.-S.: CUTS: Curvature-based Development Pattern Analysis and
Segmentation for Blogs and Other Text Streams. In: Proceedings of Hypertext
2006, Odense, Denmark (2006)

212

J. Piskorski et al.

26. Riloﬀ, E.: Automatically Constructing a Dictionary for Information Extraction
Tasks. In: Proceedings of the 11th National Conference on Artiﬁcial Intelligence
(AAAI 1993). MIT Press, Cambridge (1993)

27. Shannon, C.: A mathematical theory of communication. The Bell System Technical

Journal 27 (1948)

28. Tanev, T., Oezden-Wennerberg, P.: Learning to Populate an Ontology of Violent
Events. In: Fogelman-Soulie, F., Perrotta, D., Piskorski, J., Steinberger, R. (eds.)
NATO Security through Science Series: Mining Massive Datasets for Security. IOS
Press, Amsterdam (2008)

29. Tanev, H., Piskorski, J., Atkinson, M.: Real-Time News Event Extraction for
Global Crisis Monitoring. In: Kapetanios, E., Sugumaran, V., Spiliopoulou, M.
(eds.) NLDB 2008. LNCS, vol. 5039, pp. 207–218. Springer, Heidelberg (2008)
30. Tanev, H., Zavarella, V., Linge, J., Kabadjov, M., Piskorski, J., Atkinson, M.,
Steinberger, R.: Exploiting Machine Learning Techniques to Build an Event Ex-
traction System for Portuguese and Spanish. LINGUAMÁTICA Journal 2, 55–66
(2009)

31. Wagner, E., Liu, J., Birnbaum, L., Forbus, K., Baker, J.: Using Explicit Semantic
Models to Track Situations Across News Articles. In: Proceedings of the AAAI
2006 workshop on Event Extraction and Synthesis, Menlo Park, California, USA
(2006)

32. Yangarber, R., Grishman, R.: Machine Learning of Extraction Patterns from Un-
annotated Corpora. In: Proceedings of the 14th European Conference on Artiﬁcial
Intelligence: Workshop on Machine Learning for Information Extraction, Berlin,
Germany (2000)

33. Yangarber, R.: Counter-Training in Discovery of Semantic Patterns. In: Proceed-

ings of the 41st Annual Meeting of the ACL (2003)

34. Yangarber, R., Von Etter, P., Steinberger, R.: Content Collection and Analysis in
the Domain of Epidemiology. In: Proceedings of DrMED 2008: International Work-
shop on Describing Medical Web Resources at MIE 2008: the 21st International
Congress of the European Federation for Medical Informatics 2008, Goeteborg,
Sweden (2008)

35. Zavarella, V., Piskorski, J., Tanev, H.: Event Extraction for Italian using a Cascade
of Finite-State Grammars. In: Post-Proceedings of the 7th International Work-
shop on Finite-State Machines and Natural Language Processing, Ispra, Italy
(2008/2009)

Author Index

Atkinson, Martin

182

Nguyen, Ngoc Thanh

140

Baumann, Michael
Budzynska, Katarzyna

157

106

Chen, Li
Choro´s, Kazimierz

27

124

Eberling, Markus

157

Oliveira, Eug´enio

84

Piskorski, Jakub

182

Rembelski, Pawe(cid:4)l
Rocha, Ana Paula

106
84

Garbacz, Pawe(cid:4)l

106

Selamat, Ali

1

J¸edrzejowicz, Joanna
J¸edrzejowicz, Piotr

66

66

106
157

Kacprzak, Magdalena
Kemmerich, Thomas
Kiv, Sodany
Kolp, Manuel
Kulicki, Piotr

41
106

41

Lechniak, Marek
Lettmann, Theodor

106

157

Ma, Lihong
Mianowska, Bernadetta

27

140

Tanev, Hristo
27
Tian, Jing
Trypuz, Robert

182

106

Urbano, Joana

84

van der Goot, Eric

182

Wautelet, Yves

41

Yu, Weiyu

27

Zavarella, Vanni

182

